Fixing http status for PUT/PATCH APIs

Signed-off-by: Brandon Mitchell <git@bmitch.net>
pull/3444/head
Brandon Mitchell 2021-06-28 15:11:53 -04:00
parent ad8f5caba0
commit 3f09e31ea6
1 changed files with 5 additions and 5 deletions

View File

@ -3651,9 +3651,9 @@ The following parameters should be specified on the request:
```
202 Accepted
Content-Length: 0
Location: /v2/<name>/blobs/uploads/<uuid>
Range: 0-0
Range: bytes=0-<offset>
Content-Length: 0
Docker-Upload-UUID: <uuid>
```
@ -4379,7 +4379,7 @@ The following parameters should be specified on the request:
###### On Success: Data Accepted
```
204 No Content
202 Accepted
Location: /v2/<name>/blobs/uploads/<uuid>
Range: 0-<offset>
Content-Length: 0
@ -4645,7 +4645,7 @@ The following parameters should be specified on the request:
###### On Success: Chunk Accepted
```
204 No Content
202 Accepted
Location: /v2/<name>/blobs/uploads/<uuid>
Range: 0-<offset>
Content-Length: 0
@ -4925,7 +4925,7 @@ The following parameters should be specified on the request:
###### On Success: Upload Complete
```
204 No Content
201 Created
Location: <blob location>
Content-Range: <start of range>-<end of range, inclusive>
Content-Length: 0