Structured errors (Problem Details)

Structured errors return a consistent JSON body describing the problem. The Problem Details format (RFC 9457, type application/problem+json) defines standard fields: type, title, status, detail. Clients can then handle errors uniformly.

Example

{"type":"/erreurs/validation","title":"Invalid data","status":422,"detail":"The email field is invalid."}

Related concepts

The whole glossary