A problem response
01A JSON problem object provides machine-readable error information alongside an HTTP status.
Generic HTTP software reads the status; clients may use the structured details.
Key idea: Use application/problem+json for the JSON format.
Rules & examples
Use application/problem+json for the JSON format.
- Use application/problem+json for the JSON format.
- Problem details complement HTTP status semantics rather than redefining them.
- The status member, if present, must match the status generated in the HTTP response.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
The revision adds a registry of common problem type URIs and clarifies multiple-problem handling and type-URI guidance.
Read the updated RFC section ↗