[pve-devel] [RFC PATCH http-server 1/2] add error message into http body

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jan 28 15:24:40 CET 2025


Am 27.01.25 um 13:44 schrieb Dominik Csapak:
> any new input on this?
> 
> I have thought about blindly adding 'plain/text' to it or do an 'encode_json("$msg")' and adding
> 'application/json', but both options don't seem very sensible to me, as they're altering
> the content type for all errors the api returns. This might trip up some clients.
> (whereas before we did not set it so the client was free to guess or ignore the body content,
> even if it was set)

Thanks for the clarification, leaving it as is can be fine then.
But maybe add a short comment with rationale from your reply here.





More information about the pve-devel mailing list