maptiler / epsg.io

EPSG.io: Coordinate Systems Worldwide
https://epsg.io/
BSD 2-Clause "Simplified" License
339 stars 67 forks source link

Page returns 200 HTTP code despite encountering an error #188

Closed rdewit closed 1 year ago

rdewit commented 2 years ago

When looking up the projection details for a code that does not exist, the user receives a HTML page containing the error code and text, but the actual HTTP headers return 200 OK.

Example: https://epsg.io/1.proj4, which returns 500: Internal Server Error in the HTML but 200 OK in the response headers.

This is problematic for software that tries to retrieve the information programmatically, like OpenLayers.

AliFlux commented 1 year ago

This is fixed at epsg. https://epsg.io/1.proj4 returns 404 now

rdewit commented 1 year ago

Thanks @AliFlux! I'll close the issue.