xregistry / spec

xRegistry related specifications
https://xRegistry.io
Apache License 2.0
48 stars 6 forks source link

How prescriptive should we be about which HTTP error codes to return? #100

Open duglin opened 7 months ago

duglin commented 7 months ago

404 is one we do mandate, and we sometimes say it must be a 400, but most of the time we just say "an error must be generated". Do we need to be more precise? Should we standardize the error messages?

duglin commented 6 months ago

Yes and consider using: https://datatracker.ietf.org/doc/html/rfc7807 -> https://datatracker.ietf.org/doc/html/rfc9457

manuelottlik commented 6 months ago

We need to provide a way to standardize the non-happy path in an extensible way.

duglin commented 6 months ago

Proposal: