[openstreetmap/openstreetmap-website] handle API errors with no content (PR #7194)

Kyℓe Hensel notifications at github.com
Mon Jun 29 13:51:20 UTC 2026


### Description

Closes #7186 by showing the HTTP status code + status text. For example: `503 Service Unavailable`.

### How has this been tested?

not sure if it's fastly's fault or whatever, but these 503 errors are coming from some intermediary, not from the ruby code in this repository. Therefore, it's tricky to test. the [browser devtools' overrides](https://developer.chrome.com/docs/devtools/overrides) isn't powerful enough, so I setup a local HTTP server, and manually overwrote the URL in the JS code.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/7194

-- Commit Summary --

  * handle API errors with no content

-- File Changes --

    M app/assets/javascripts/index_modules/note.js (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/7194.patch
https://github.com/openstreetmap/openstreetmap-website/pull/7194.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7194
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7194 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260629/bf40dc74/attachment-0001.htm>


More information about the rails-dev mailing list