these two patches improve the error handling for api errors: * put the error in the body (so we can access them in the rust client) * use the correct error code in some places (500 instead of 501)
the second patch is not 100% necessary now IMHO, but it is more correct, than the status quo. Both patches modify the api response so I send it as RFC since they're possibly breaking API changes (not sure about how we'd interpret this though, since it's not mentioned on [0]). 0: https://pve.proxmox.com/wiki/Proxmox_VE_API#API_Stability_&_Breakage Dominik Csapak (2): add error message into http body use HTTP_INTERNAL_SERVER_ERROR were appropriate instead of '501' src/PVE/APIServer/AnyEvent.pm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel