[openstreetmap/openstreetmap-website] Forcing English language error response for /api/0.6/user/details (#2227)

mmd notifications at github.com
Sun May 19 07:43:57 UTC 2019


Well, having machine readable error codes isn't a concept that is widely available in the API as of today. This leads to all sorts of regular expression based error message parsing, going back to even Potlatch2: https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/XMLConnection.as#L330-L364

I certainly wouldn't object putting in some more accessible error code in the "Error" HTTP header, and have the localized text in the body for the UI to show in a popup. After all, JOSM just needs the Error header to reliably recognize a "User has been blocked" situation.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2227#issuecomment-493734747
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190519/8fc7ef4c/attachment.html>


More information about the rails-dev mailing list