summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-24 18:25:45 +0100
committerGitHub <noreply@github.com>2022-03-24 18:25:45 +0100
commit712777e0aa4ff028b78fd312b0e9fa9cb2c0bf25 (patch)
tree1bfdb4c95ef5a17c8f28a14385b4f2fb30b3b1ca /pkg/api/handlers
parentc61b06c46ce414a9b55fc4ebbf247199c81ac782 (diff)
parenta6504963b327b83b5ba1e56290d9d0afbe505bfb (diff)
downloadpodman-712777e0aa4ff028b78fd312b0e9fa9cb2c0bf25.tar.gz
podman-712777e0aa4ff028b78fd312b0e9fa9cb2c0bf25.tar.bz2
podman-712777e0aa4ff028b78fd312b0e9fa9cb2c0bf25.zip
Merge pull request #13274 from jwhonce/wip/manifest_4_main
Fix manifest 4.0 endpoints
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/libpod/manifests.go2
1 files changed, 1 insertions, 1 deletions
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)
}