spiegel_podman/pkg/api/handlers
Hiroaki KAWAI d56f52c8a7
api: reflect container stats errors in HTTP status codes
Existing KillContainer handling uses HTTP status code 409 when the request cannot be performed because of the current container state. HTTP status code 404 is also used when the target container does not exist.

In contrast, errors from the stats handler are not reflected in the HTTP status code. The HTTP status code is always 200, and the errors are recorded only as generic errors in the server log.

To maintain compatibility with both streaming enabled and disabled, this change treats obtaining at least one complete unit of response content as the response contract. It then keeps the response content consistent with the HTTP status code.

Signed-off-by: Hiroaki KAWAI <hiroaki.kawai@gmail.com>
2026-09-04 20:42:55 +09:00
..
compat api: reflect container stats errors in HTTP status codes 2026-09-04 20:42:55 +09:00
grpc RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
libpod Performance: Upgrade filepath.Walk to filepath.WalkDir 2026-08-20 20:48:08 +05:30
swagger api: Deprecate is-automated filter and field in GET /images/search endpoint 2026-07-08 17:31:02 +02:00
types RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
utils added errorlint 2026-08-14 01:35:03 +05:30
decoder.go added errorlint 2026-08-14 01:35:03 +05:30
types.go api: Deprecate fields Container and ContainerConfig from GET /images/{name}/json 2026-07-08 17:31:02 +02:00