From ae9ad416a35a23afd11426fb4a2e65e9b45bd22f Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 17 Feb 2022 09:27:46 -0700 Subject: Fix manifest 4.0 Endpoints Branch forced 4.0 only endpoints Signed-off-by: Jhon Honce --- pkg/api/handlers/libpod/manifests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/api') diff --git a/pkg/api/handlers/libpod/manifests.go b/pkg/api/handlers/libpod/manifests.go index 250736579..ad662f32c 100644 --- a/pkg/api/handlers/libpod/manifests.go +++ b/pkg/api/handlers/libpod/manifests.go @@ -401,7 +401,7 @@ func ManifestModify(w http.ResponseWriter, r *http.Request) { case len(report.Errors) > 0 && len(report.Images) > 0: statusCode = http.StatusConflict case len(report.Errors) > 0: - statusCode = http.StatusInternalServerError + statusCode = http.StatusBadRequest } utils.WriteResponse(w, statusCode, report) } -- cgit v1.2.3-54-g00ecf