<p></p>
<h3 dir="auto">Problem</h3>
<p dir="auto"><a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:_GET_/api/0.6/%5Bnodes%7Cways%7Crelations%5D?#parameters" rel="nofollow">Multi Fetch</a> requests return HTTP 404 without a hint about which argument caused the error</p>
<h3 dir="auto">Description</h3>
<p dir="auto">For example, y <a href="https://www.openstreetmap.org/node/250407804/history" rel="nofollow">https://www.openstreetmap.org/node/250407804/history</a> the first versions are hidden.</p>
<p dir="auto">If you do <a href="https://www.openstreetmap.org/api/0.6/nodes.json?nodes=250407804v1" rel="nofollow">https://www.openstreetmap.org/api/0.6/nodes.json?nodes=250407804v1</a> you will receive an HTTP 404. But what if you request a hundred nodes and there are several hidden versions among them? <a href="https://www.openstreetmap.org/api/0.6/nodes.json?nodes=250407804,250407804v1" rel="nofollow">https://www.openstreetmap.org/api/0.6/nodes.json?nodes=250407804,250407804v1</a></p>
<p dir="auto">You'll get a 404, but you won't be able to figure out which version caused the error. And to understand this, you will have either split the query, or call /history for each object, which kills the idea of Multi Fetch queries.</p>
<h2 dir="auto">Possible solutions</h2>
<ol dir="auto">
<li>Return visible versions, but no hidden versions (just like for deleted nodes)</li>
<li>Return a 404 and a list of problem nodes</li>
</ol>
<p dir="auto">p. s. the same applies for ways and relations</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><em>No response</em></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5005">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLXQ5HOJ32DFVIRIUTZNEN75AVCNFSM6AAAAABLEV4GACVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTSMBTHE4DSOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNJNYMD7WNDGTVL433ZNEN75A5CNFSM6AAAAABLEV4GACWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJAL46TM.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5005</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5005",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5005",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>