dataplaneapi icon indicating copy to clipboard operation
dataplaneapi copied to clipboard

Wrong status code 400 when deleting non-existing transaction

Open leahneukirchen opened this issue 3 years ago • 0 comments

% curl -X DELETE localhost:5555/v2/services/haproxy/transactions/111
{"code":400,"message":"20: transaction 111 does not exist"}

According to the documentation (https://www.haproxy.com/documentation/dataplaneapi/enterprise/#delete-/services/haproxy/transactions/-id- ) and general REST behavior, this should be status 404.

leahneukirchen avatar Sep 21 '22 14:09 leahneukirchen