Error format

A single error format makes error responses predictable for all clients: the same structure everywhere (code, message, optional details) and a suitable HTTP code. The RFC 9457 standard ("problem details") offers a standardized form, with the type, title, status, and detail fields.

Example

{ "status": 404, "title": "Not found", "detail": "User 12 unknown" }

Related concepts

The whole glossary