Skip to content

Commit 3cafdf4

Browse files
committed
Clarify that 416 is valid on a blob put
Signed-off-by: Brandon Mitchell <git@bmitch.net>
1 parent e612a6e commit 3cafdf4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ Location: <blob-location>
409409

410410
Here, `<blob-location>` is a pullable blob URL.
411411

412+
If the final chunk is uploaded out of order, the registry MUST respond with a `416 Requested Range Not Satisfiable` code.
413+
412414
---
413415

414416
To get the current status after a 416 error, issue a `GET` request to a URL `<location>` <sup>[end-13](#endpoints)</sup>.
@@ -795,7 +797,7 @@ This endpoint MAY be used for authentication/authorization purposes, but this is
795797
| end-4a | `POST` | `/v2/<name>/blobs/uploads/` | `202` | `404` |
796798
| end-4b | `POST` | `/v2/<name>/blobs/uploads/?digest=<digest>` | `201`/`202` | `404`/`400` |
797799
| end-5 | `PATCH` | `/v2/<name>/blobs/uploads/<reference>` | `202` | `404`/`416` |
798-
| end-6 | `PUT` | `/v2/<name>/blobs/uploads/<reference>?digest=<digest>` | `201` | `404`/`400` |
800+
| end-6 | `PUT` | `/v2/<name>/blobs/uploads/<reference>?digest=<digest>` | `201` | `404`/`400`/`416` |
799801
| end-7 | `PUT` | `/v2/<name>/manifests/<reference>` | `201` | `404`/`413` |
800802
| end-8a | `GET` | `/v2/<name>/tags/list` | `200` | `404` |
801803
| end-8b | `GET` | `/v2/<name>/tags/list?n=<integer>&last=<tagname>` | `200` | `404` |

0 commit comments

Comments
 (0)