Expand description
Reusable JSON response envelope and error-body helpers.
Functionsยง
- application_
error_ status - Map a Soma
ApplicationError.codevalue to the HTTP status it renders as. - json_
rejection_ response - Render a JSON body extraction failure as a response.
- json_
response - Render any
Serializepayload as a JSON response with the given status. - validation_
error_ response - Render a
400 Bad Requestwith a generic validation error body.