summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2022-02-17 09:27:46 -0700
committerMatthew Heon <matthew.heon@pm.me>2022-02-17 12:34:05 -0500
commitae9ad416a35a23afd11426fb4a2e65e9b45bd22f (patch)
treeb0319e0b779cac416a7db060b097c4f75332c14c /pkg/api
parent1a8c715f1fa3fb417cd7ca3cde5e1c7e5391b3f4 (diff)
downloadpodman-ae9ad416a35a23afd11426fb4a2e65e9b45bd22f.tar.gz
podman-ae9ad416a35a23afd11426fb4a2e65e9b45bd22f.tar.bz2
podman-ae9ad416a35a23afd11426fb4a2e65e9b45bd22f.zip
Fix manifest 4.0 Endpoints
Branch forced 4.0 only endpoints Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api')
-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)
}