---
title: "RFC 9457 problem details for agents | Agent Ready Checklist"
description: "How to return API errors as RFC 9457 problem details: the real HTTP status, an application/problem+json body, the type URI, and extension members."
canonical: https://agentreadychecklist.com/guides/error-responses-agents-can-act-on-problem-details
site: "Agent Ready Checklist"
last_updated: 2026-11-18
date: 2026-11-18
section: "Guides"
---

# RFC 9457 problem details for agents | Agent Ready Checklist

> How to return API errors as RFC 9457 problem details: the real HTTP status, an application/problem+json body, the type URI, and extension members.

Source: https://agentreadychecklist.com/guides/error-responses-agents-can-act-on-problem-details
Site: Agent Ready Checklist
Last reviewed: 2026-11-18
Agent endpoints: https://agentreadychecklist.com/llms.txt (index), https://agentreadychecklist.com/openapi.json (API), https://agentreadychecklist.com/mcp (MCP server), https://agentreadychecklist.com/ask (search)
Access: https://agentreadychecklist.com/auth.md (no key). Pricing: https://agentreadychecklist.com/pricing.md (free).

# Return API errors as RFC 9457 problem details for agents

Send the real HTTP status code with a body typed application/problem+json, the format RFC 9457 defines. Consumers must use its type URI as the problem type's primary identifier, and an object without one defaults to about:blank. Clients must ignore extension members they do not recognize, so a problem type can add members such as a validation error array.

Fix the status code before you design the body. Under [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110), a client examines each response and decides what to do next from the status codes and content it receives. AgentReady's [AR-READ-02](https://github.com/agentready-org/standard/blob/main/spec/spec.md) requires accurate codes: 404 or a valid redirect for missing paths, 429 with Retry-After when throttling, and never a 200 for a missing page. Its evidence is that agents cannot distinguish a soft-404 from a live page. In one case the [AgentReady spec](https://github.com/agentready-org/standard/blob/main/spec/spec.md) observed, a single-page app returned 200 for every path, so dead URLs appeared valid.

Related: [Soft 404 defined](https://agentreadychecklist.com/glossary/soft-404/)

Related: [AR-READ-02](https://agentreadychecklist.com/checklist/ar-read-02/)

A gateway, also called a reverse proxy, acts as an origin server for the outbound connection and forwards requests inbound to other servers. AgentReady's spec states that a WAF or bot manager answering agents with a 403 or a challenge page blocks them, and that throttling should use a 429 rather than a challenge page.

## Choose the media type

RFC 9457 models problem details as a JSON object served as application/problem+json, and its Appendix B defines an equivalent XML format under application/problem+xml ([RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)). The contents can be negotiated using proactive negotiation. HTTP allows an API to answer with application/problem+json even when the client did not list that type in Accept.

An existing API can add problem details through content negotiation, for example with the Accept request header indicating a preference for the format. The format is intended to avoid new "fault" or "error" document formats, not to replace domain-specific formats an application already defines. Conditions that might apply to any resource on the Web are usually better expressed as plain status codes, and a "write access disallowed" problem type is probably unnecessary because a 403 Forbidden in response to a PUT is self-explanatory.

## Fill in the standard members

Section 3.1 of [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) lists the members a problem details object can have. A member whose value does not match its specified type must be ignored, and processing continues as if it were absent.

-   **type.** A JSON string containing a URI reference that identifies the problem type. Consumers must use it, after resolution if necessary, as the primary identifier. When the member is missing, its value is assumed to be about:blank, which means the problem has no semantics beyond the status code. With about:blank, the title should be the recommended status phrase for the code ("Not Found" for 404) and may be localized through the Accept-Language request header. If the type URI is an http or https locator, dereferencing it should provide human-readable documentation, and a problem type URI should resolve to HTML documentation that explains how to resolve the problem.
-   **title.** A short, human-readable summary of the problem type. It should not change from one occurrence to the next except for localization. The string is advisory, included for users who cannot discover what the type URI means, such as during offline log analysis.
-   **status.** This member duplicates the code in the status line. The RFC says consumers can read the "status" member to find the code the generator originally used after an intermediary or cache has changed it, and also when a message's content is stored without HTTP information. Generic HTTP software will still use the HTTP status code. Because the two can disagree, the RFC's security considerations state that their relative precedence is not clear, and proxies, load balancers, firewalls and virus scanners are unlikely to know of or respect the member.
-   **detail.** A human-readable explanation specific to this occurrence. Consumers should not parse it for information; the RFC calls extensions more suitable and less error-prone.
-   **instance.** A URI reference that identifies this occurrence. If it is dereferenceable, the problem details object can be fetched from it; if not, it is a unique identifier that may matter to the server but is opaque to the client. Use absolute URIs when possible, as the RFC recommends, and give relative ones the full path, such as /instances/123.

When you define a new problem type, the definition must document a type URI, a short title and the status code it is used with.

## Carry machine-readable data in extension members

Problem type definitions may add members specific to that type ([RFC 9457 section 3.2](https://www.rfc-editor.org/rfc/rfc9457)). In the RFC's out-of-credit example, "balance" conveys the account's balance and "accounts" lists links where the account can be topped up. Clients consuming problem details must ignore extensions they do not recognize, which lets problem types evolve and add information later.

Name extension members with care. Names should start with a letter, should use only letters, digits and "\_", and should be three characters or longer. To appear in the XML format, a name must also conform to the XML Name rule. An extension might use typed links to another resource that machines can use to resolve the problem.

## Return validation errors as an array

For field-level failures, follow the 422 response in [the RFC's example](https://www.rfc-editor.org/rfc/rfc9457), whose fictional problem type defines an "errors" extension:

```text
HTTP/1.1 422 Unprocessable Content
Content-Type: application/problem+json
Content-Language: en

{
  "type": "https://example.net/validation-error",
  "title": "Your request is not valid.",
  "errors": [
    { "detail": "must be a positive integer", "pointer": "#/age" },
    { "detail": "must be 'green', 'red' or 'blue'", "pointer": "#/profile/color" }
  ]
}
```

Each entry in "errors" is an object with "detail" describing the issue and "pointer" locating it within the request's content as a JSON Pointer. When an API meets several problems that do not share a type, the RFC recommends representing the most relevant or urgent one. Generic "batch" types that convey disparate types are possible, but they do not map well into HTTP semantics.

## Answer rate limits with 429 and Retry-After

A 429 indicates the user has sent too many requests in a given amount of time ([RFC 6585](https://www.rfc-editor.org/rfc/rfc6585)). Its representations should include details explaining the condition and may include a Retry-After header saying how long to wait before a new request. The header value is either an HTTP date after which to retry or a non-negative decimal integer giving the seconds to delay after the response arrives ([MDN on Retry-After](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After)).

Problem type definitions may specify the Retry-After response header in appropriate circumstances ([RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)). With about:blank as the type, the title is the status phrase:

```text
HTTP/1.1 429 Too Many Requests
Content-Type: application/problem+json
Retry-After: 3600

{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429
}
```

If your own problem type adds a body member for the retry hint, define it in the type's documentation and name it under the extension rules above. Clients that do not recognize the member must ignore it.

Related: [How to rate limit AI agents](https://agentreadychecklist.com/guides/rate-limit-ai-agents-429-retry-after/)

## Keep stack traces and internals out of the body

The security considerations of [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) say the information in a new problem type must be carefully vetted, and the details in each generated problem must be scrutinized. The risks include leaking information that can be exploited to compromise the system, access to it, or the privacy of its users. Generators that provide links to occurrence information are encouraged to avoid making implementation details such as a stack dump available through the HTTP interface.

Problem details are not a debugging tool for the underlying implementation; they expose detail about the HTTP interface itself. Section 4 asks designers of new problem types to weigh the Security Considerations in Section 5, in particular the risk of exposing attack vectors through implementation internals in error messages. Write "detail" to help the client correct the problem rather than to give debugging information, as the RFC advises.

## Check the response with curl

AgentReady's [verification step](https://github.com/agentready-org/standard/blob/main/spec/spec.md) fetches a URL with an agent user-agent string and inspects the response:

```text
curl -iL -A 'Claude-User/1.0' https://example.com/your-page
```

Replace the URL with a request that should fail. Read the status line for the error code, then confirm the Content-Type header says application/problem+json (or application/problem+xml for the XML format). The spec notes the curl is not proof either way, because bot blockers weigh where a request comes from more than its user-agent string. It names server logs as the dependable test: OpenAI and Anthropic publish their crawlers' IP ranges, so find those requests in your logs and check the status codes they received.

## Sources

-   [RFC 9457: Problem Details for HTTP APIs](https://www.rfc-editor.org/rfc/rfc9457)IETF / RFC Editor, read 2026-11-18
-   [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110)IETF / RFC Editor, read 2026-11-18
-   [RFC 6585: Additional HTTP Status Codes](https://www.rfc-editor.org/rfc/rfc6585)IETF / RFC Editor, read 2026-11-18
-   [Retry-After](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After)MDN, read 2026-11-18
-   [AgentReady spec](https://github.com/agentready-org/standard/blob/main/spec/spec.md)AgentReady standard repository, read 2026-11-18

Edition

Data

2026-11-04

Reviewed

2026-11-18

Spec

AgentReady v2.0.1, db79f10

Crawl

13,071 rows, 2026-11-04

Ora

132 checks, contract 1.38.0, 2026-11-05

Verify with Ora

The scanner this site recommends for the whole checklist. 132 checks, a score out of 100, no account.

`npx ax@0.10 audit <url> --min-score <n>`

[Why Ora, and its limits](https://agentreadychecklist.com/verify-with-ora/)

Method

-   [How rows, commands and rates are made](https://agentreadychecklist.com/method/)
-   [How an Ora check is matched to a row](https://agentreadychecklist.com/checklist/ora-checks/)
-   [Pass rates by rank band](https://agentreadychecklist.com/data/by-rank/)

Sources and read dates sit at the foot of the page.

Last reviewed 2026-11-18. AgentReady v2.0.1, read 2026-11-24.
