From 3f09e31ea6fca88cad609267e7f3beb9fe43feda Mon Sep 17 00:00:00 2001 From: Brandon Mitchell Date: Mon, 28 Jun 2021 15:11:53 -0400 Subject: [PATCH] Fixing http status for PUT/PATCH APIs Signed-off-by: Brandon Mitchell --- docs/spec/api.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/spec/api.md b/docs/spec/api.md index aed326e11..9b75bf8bb 100644 --- a/docs/spec/api.md +++ b/docs/spec/api.md @@ -3651,9 +3651,9 @@ The following parameters should be specified on the request: ``` 202 Accepted -Content-Length: 0 Location: /v2//blobs/uploads/ -Range: 0-0 +Range: bytes=0- +Content-Length: 0 Docker-Upload-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//blobs/uploads/ Range: 0- 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//blobs/uploads/ Range: 0- 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: Content-Range: - Content-Length: 0