diff --git a/registry/handlers/layerupload.go b/registry/handlers/layerupload.go index 63a9e776..3a852043 100644 --- a/registry/handlers/layerupload.go +++ b/registry/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 }