4xx
HTTP response code should be returned for all application level errors and the response should always contain a
JSON-encoded body.
If any non 2xx
HTTP response code is returned then the request will have been fully rolled back and should have no impact on any data.
openapi
type error with the details
describing which step failed validation in the key
and a message
describing the failure.
message
but not a details
array.
5xx
range errors are likely due to a network or routing issue and should be temporary and will likely not have a predictable response format.