01What is Problem Details Validator?
Problem Details Validator checks HTTP API error bodies against RFC 9457, the IETF standard for the application/problem+json format. RFC 9457 replaced RFC 7807 in July 2023. When an error body is slightly off, generic clients and API gateways quietly ignore the parts they don't understand, so mistakes are easy to miss. Paste a JSON body, or a whole response with the status line and headers. The tool reads the five standard members. type is a URI reference that names the kind of problem, status is the HTTP status code as a number, and title is a short summary of the problem type. detail explains this one occurrence, and instance is a URI reference for the occurrence. Section 3.1 says a member with the wrong type MUST be ignored. So if you send "status": "404" as a string, a conforming client acts as if there were no status at all. The tool flags these and shows what a consumer would actually see. It also checks the rules around those members. The status member must match the real HTTP status code (section 3.1.2), and the tool compares it with the status line when you paste a full response. When type is missing it defaults to about:blank. In that case the title SHOULD be the standard reason phrase, such as Not Found for 404 (section 4.2.1). The tool also notes relative type and instance URIs, since section 3.1.1 recommends absolute ones, and a Content-Type of plain application/json. Extension members are listed. Names that won't survive the XML form are flagged, because section 4 asks for a leading letter, letters, digits or underscores, and at least three characters. If there is an errors array like the RFC's validation example, each pointer is checked as a JSON Pointer. For example, the RFC's out-of-credit response passes with balance and accounts listed as extensions. Paste a 500 response whose body says "status": 404, and you get an error for the mismatch. The Build tab writes a body and response from a status, type, title, detail and instance. It doesn't follow type URIs or call your API, and it can't tell whether a custom problem type is documented. Everything runs in your browser. Sources: RFC 9457, Problem Details for HTTP APIs (https://www.rfc-editor.org/rfc/rfc9457); RFC 9110 section 15 for status reason phrases (https://www.rfc-editor.org/rfc/rfc9110); RFC 6901, JSON Pointer (https://www.rfc-editor.org/rfc/rfc6901).
Backend and API developers, API platform teams and technical writers who define error formats for HTTP APIs. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Problem Details Validator
- Paste a problem+json body, or a full HTTP response with its status line and headers
- If you pasted only the body, type the HTTP status code in the box
- Read the errors and warnings, then compare the member values a consumer would see
- Open Build to write a correct body for a status code and copy it
03Worked examples
- Input:
{"type":"https://example.com/probs/out-of-credit","title":"You do not have enough credit.","status":403,"balance":30} - Result:
info: Valid RFC 9457 problem details object. info: A resolvable type URI should lead to human-readable documentation (section 3.1.1). This tool doesn't fetch it. - A custom problem type based on the RFC's example; balance is listed as an extension.
- Input:
{"status":404,"title":"Oops"} - Result:
info: Valid RFC 9457 problem details object. info: No "type" member, so the type is "about:blank"... warn: With type about:blank the title SHOULD be the status phrase "Not Found" (section 4.2.1), possibly localised. Found "Oops". - Without a type, the title should be the reason phrase.
- Input:
HTTP/1.1 500 Internal Server Error Content-Type: application/json {"type": "about:blank", "status": 404, "title": "Resource missing"} - Result:
warn: Content-Type is application/json... error: "status" is 404 but the HTTP response status is 500. Generators MUST use the same code in the response (section 3.1.2). warn: With type about:blank the title SHOULD be the status phrase "Not Found"... - Output trimmed. The body and the status line disagree.
- Input:
{"type": 7, "status": "429", "title": "Too Many Requests"} - Result:
error: "type" must be a string (a URI reference). Per section 3.1 a member with the wrong type MUST be ignored... error: "status" must be a JSON number (an integer HTTP status code)... - Both members would be ignored by a conforming client.
04Common use cases
- Checking that a new API's 4xx and 5xx responses use application/problem+json correctly before release
- Finding why a client library ignores the status or type in your error bodies
- Reviewing a framework's default error output against RFC 9457
- Writing a consistent 429 or 422 error body for API documentation
- Spotting stack traces or exception names leaking into the detail member
05Tips
- Send status as a number. A string such as "404" is ignored by conforming clients
- Keep title the same for every occurrence of a problem type, and put specifics in detail
- Use an absolute https type URI that leads to documentation for the problem
- For a plain error with no extra meaning, leave type out and use the status phrase as the title
06Related concepts
RFC 9457, RFC 7807, application/problem+json, HTTP API errors, JSON Pointer.
Frequently Asked Questions
What is Problem Details Validator?
Problem Details Validator is a free, browser-based developer tool on AIDToolStack. Paste an HTTP API error response and check it against RFC 9457 Problem Details: member types, status match, about:blank titles and extensions. It requires no installation or sign-up and works entirely in your browser.
Is Problem Details Validator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Problem Details Validator store my data?
No. It runs in your browser; nothing is uploaded.