distribution-spec icon indicating copy to clipboard operation
distribution-spec copied to clipboard

Error code requirement seems too strict

Open rogpeppe opened this issue 2 years ago • 0 comments

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.

rogpeppe avatar May 24 '23 16:05 rogpeppe