Skip to content

Tools/problem+json

problem+json

Build an application/problem+json document. Nothing is uploaded.

Loading tool…

How to use problem+json

  1. 1. Set status and title. 404 Not Found, etc.
  2. 2. Fill detail and instance. Human text and a URI.
  3. 3. Optional type URI. Defaults to httpstatuses.com/{status}.
  4. 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" }

Frequently asked questions

Related tools

All tools