diff --git a/docs/handlers/layerupload.go b/docs/handlers/layerupload.go index 63a9e776..3a852043 100644 --- a/docs/handlers/layerupload.go +++ b/docs/handlers/layerupload.go @@ -174,7 +174,7 @@ func (luh *layerUploadHandler) PutLayerUploadComplete(w http.ResponseWriter, r * if dgstStr == "" { // no digest? return error, but allow retry. - w.WriteHeader(http.StatusNotFound) + w.WriteHeader(http.StatusBadRequest) luh.Errors.Push(v2.ErrorCodeDigestInvalid, "digest missing") return }