gbv / jskos-proxy

HTTP proxy to serve JSKOS objects
https://uri.gbv.de/terminology/
MIT License
3 stars 2 forks source link

Differentiate between different kinds of errors #40

Open stefandesu opened 1 month ago

stefandesu commented 1 month ago

Continuation of #36.

There should be different error messages depending on the kind of error. In particular, we should differentiate between 404 (not found), 5xx (backend reachable, but other error), and network errors.

nichtich commented 1 month ago

Should also be used when using curl to directly get data:

curl -I https://coli-conc.gbv.de/terminology/XXX/?format=json

returns 504 but I'd expect 404.