How to use problem+json
- 1. Set status and title. 404 Not Found, etc.
- 2. Fill detail and instance. Human text and a URI.
- 3. Optional type URI. Defaults to httpstatuses.com/{status}.
- 4. Copy JSON. Content-Type: application/problem+json.
About this tool
RFC 7807 (and RFC 9457) standardizes API errors as a JSON object with type, title, status, detail, and instance. This builder writes that shape so mock APIs and tests agree.
Extensions
Add extra fields after copy if your API uses them.
type URL
Should be a URI that documents the error. The default is a convenience, not a spec requirement.
Code examples
JSON
{ "type": "about:blank", "status": 404, "title": "Not Found" }