Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code requirement seems too strict #418

Open
rogpeppe opened this issue May 24, 2023 · 0 comments
Open

Error code requirement seems too strict #418

rogpeppe opened this issue May 24, 2023 · 0 comments

Comments

@rogpeppe
Copy link
Contributor

The section on error codes states the following:

The code field MUST be one of the following:

The set of codes provided doesn't seem comprehensive enough to cover the many possible kinds of error that might happen.
For example, what is error code can a server use if it fails to access a backend data store for some reason?
Or if it can't parse a numeric query parameter?

The docker registry itself uses an UNKNOWN error code for errors that it can't categorize. I'd suggest adding that to the list of possible error codes, and also potentially providing some registration scheme for error codes so it's possible to extend the set by mutual agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant