Go to file
Dominik Csapak 9a2112e664 fix #6503: return api handler errors in the json body
similar to what we do for the extjs formatter, put the error message or
status message in the 'message' property of the return object.

This way client libraries can extract the error without having to parse
the HTTP status reason phrase (which is not possible in all http
libraries, e.g. hyperium's http rust crate).

This should not be a breaking change, since it just adds a (semi) new
field to the return value.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2025-01-28 15:25:45 +01:00
debian bump version to 5.1.2 2024-10-04 14:03:00 +02:00
src fix #6503: return api handler errors in the json body 2025-01-28 15:25:45 +01:00
.gitignore fixup no newline at end of .gitignore 2018-05-25 16:42:05 +02:00
Makefile fixup! buildsys: add sbuild target for convenience 2023-05-17 07:31:38 +02:00