spiegel_podman/pkg
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
..
annotations Performance: Use delayed regex compilation 2026-08-14 21:14:17 +05:30
api api: reflect container stats errors in HTTP status codes 2026-09-04 20:42:55 +09:00
auth api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
autoupdate RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
bindings pkg/bindings: keep auth fields out of the query string 2026-08-24 23:43:27 +05:30
channel pkg/channel: add tests for the channel WriteCloser 2026-07-25 17:11:50 +05:30
checkpoint checkpoint: close rootfs tar stream after use 2026-06-24 12:32:18 +03:00
copy pkg/copy: add tests for ParseSourceAndDestination 2026-06-24 22:25:26 +05:30
criu deps: bump go-criu to v8.2.0 2026-06-09 11:51:46 -07:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain Performance: Replace strings.ToLower with strings.EqualFold 2026-08-15 02:17:47 +05:30
emulation fix some missing scanner error checks 2026-06-30 10:32:32 +02:00
env run modernize -fix ./... 2025-09-10 16:17:04 +02:00
errorhandling pkg/errorhandling: remove deadcode 2025-06-26 19:37:14 +02:00
farm farm: handle tagged --tag references on build 2026-08-19 12:44:54 +05:30
fileserver RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
inspect swagger: fix deprecated alias annotations and model name collisions 2026-08-10 22:14:47 +05:30
k8s.io added errorlint 2026-08-14 01:35:03 +05:30
logiface run modernize -fix ./... 2025-09-10 16:17:04 +02:00
lookup Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
machine Merge pull request #28447 from jude-ruben/fix/machine-image-permissions 2026-08-24 15:07:36 -04:00
namespaces pkg/namespaces: add tests for UsernsMode and NetworkMode 2026-06-30 16:50:07 +05:30
parallel RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
pidhandle added errorlint 2026-08-14 01:35:03 +05:30
ps Performance: Use delayed regex compilation 2026-08-14 21:14:17 +05:30
rctl added errorlint 2026-08-14 01:35:03 +05:30
rootless rootless: fix heap-buffer-overflow in preexec hooks 2026-07-29 10:27:49 +03:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux bump selinux to v1.15.1, use SetProcessKind 2026-06-02 11:18:34 -07:00
signal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
specgen Merge pull request #29468 from JamesBalazs/healthcheck-fix 2026-08-20 15:42:15 -04:00
specgenutil specgen: move log_path handling over to the server 2026-06-03 09:22:50 +05:30
specgenutilexternal pkg/specgenutilexternal: add tests for FindMountType 2026-07-08 17:46:55 +05:30
syncmap Add syncmap package and use it for graph stop/remove 2025-02-17 14:32:34 -05:00
systemd Performance: Use delayed regex compilation 2026-08-14 21:14:17 +05:30
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
trust pkg/trust: prevent panic on malformed GPG uid/pub lines 2026-08-13 23:51:56 +05:30
util pkg/util: add tests for ParseRestartPolicy 2026-08-20 20:54:42 +05:30