pub fn service_error_status(err: &ServiceError) -> StatusCodeExpand description
The status a ServiceError answers with, by variant.
A refusal for named reasons — a protected field, a broken rule, a constraint the database refused — is the caller’s to fix: 422. A plain validation error is 400, a missing record 404, a duplicate or conflict 409, and only what is left is a 500.