Skip to content

Commit

Permalink
spec.md: add note on legacy error codes
Browse files Browse the repository at this point in the history
Mentions `TAG_INVALID` and `MANIFEST_UNVERIFIED` as legacy error codes.

Also adjusts error codes' numbering - `code-11` was removed by
opencontainers#206.

Closes opencontainers#319

Signed-off-by: Flavian Missi <fmissi@redhat.com>
  • Loading branch information
flavianmissi authored and sudo-bmitch committed Aug 18, 2023
1 parent 63cfdb3 commit 3135fb4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ For relevant details and a history leading up to this specification, please see
Because of the origins this specification, the client MAY encounter Docker-specific headers, such as `Docker-Content-Digest`, or `Docker-Distribution-API-Version`.
These headers are OPTIONAL and clients SHOULD NOT depend on them.

#### Legacy Docker support error codes

The client MAY encounter error codes targeting Docker schema1 manifests, such as `TAG_INVALID`, or `MANIFEST_UNVERIFIED`.
These error codes are OPTIONAL and clients SHOULD NOT depend on them.

### Definitions

Several terms are used frequently in this document and warrant basic definitions:
Expand Down Expand Up @@ -574,10 +579,10 @@ The `code` field MUST be one of the following:
| code-8 | `NAME_INVALID` | invalid repository name |
| code-9 | `NAME_UNKNOWN` | repository name not known to registry |
| code-10 | `SIZE_INVALID` | provided length did not match content length |
| code-12 | `UNAUTHORIZED` | authentication required |
| code-13 | `DENIED` | requested access to the resource is denied |
| code-14 | `UNSUPPORTED` | the operation is unsupported |
| code-15 | `TOOMANYREQUESTS` | too many requests |
| code-11 | `UNAUTHORIZED` | authentication required |
| code-12 | `DENIED` | requested access to the resource is denied |
| code-13 | `UNSUPPORTED` | the operation is unsupported |
| code-14 | `TOOMANYREQUESTS` | too many requests |

### Appendix

Expand Down

0 comments on commit 3135fb4

Please sign in to comment.