<p>During testing the <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1156" class="issue-link js-issue-link" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1156" data-id="134024550" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1156</a> fix, I noticed that the error handling is not ideal. Unlike other APIs, some error messages are returned as <code>remark</code> element in the returned payload, even with an HTTP return code of 200. Please see this ticket for details: <a href="https://github.com/drolbr/Overpass-API/issues/94" class="issue-link js-issue-link" data-url="https://github.com/drolbr/Overpass-API/issues/94" data-id="34727881" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">drolbr/Overpass-API#94</a></p>
<p>Here's an example how this is solved in overpass turbo:<br>
<a href="https://github.com/tyrasd/overpass-turbo/blob/3f57688fe1da78e57d88fe202747281d84dfb156/js/overpass.js#L117-L148">https://github.com/tyrasd/overpass-turbo/blob/3f57688fe1da78e57d88fe202747281d84dfb156/js/overpass.js#L117-L148</a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1178">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLX0xjj0AkKH7j_nmxK3a0PpHRYHNks5prohegaJpZM4Hshmx.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1178"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>