Skip to content

Commit 4ab4752

Browse files
authored
Merge pull request opencontainers#326 from flavianmissi/reword-error-codes
spec.md: add note on legacy error codes
2 parents dd38b7e + 2fbf2f9 commit 4ab4752

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

spec.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ For relevant details and a history leading up to this specification, please see
4848
Because of the origins this specification, the client MAY encounter Docker-specific headers, such as `Docker-Content-Digest`, or `Docker-Distribution-API-Version`.
4949
These headers are OPTIONAL and clients SHOULD NOT depend on them.
5050

51+
#### Legacy Docker support error codes
52+
53+
The client MAY encounter error codes targeting Docker schema1 manifests, such as `TAG_INVALID`, or `MANIFEST_UNVERIFIED`.
54+
These error codes are OPTIONAL and clients SHOULD NOT depend on them.
55+
5156
### Definitions
5257

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

582587
### Appendix
583588

0 commit comments

Comments
 (0)