> For the complete documentation index, see [llms.txt](https://fourohtwo.gitbook.io/fourohtwo-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fourohtwo.gitbook.io/fourohtwo-docs/reference/errors.md). Agents can also search and read this documentation through its [MCP server](https://fourohtwo.gitbook.io/fourohtwo-docs/~gitbook/mcp).

# Responses and errors

| Status               | Meaning                                                                                            | Charged |
| -------------------- | -------------------------------------------------------------------------------------------------- | ------- |
| `200` (or other 2xx) | The API answered and the payment settled.                                                          | Yes     |
| `402`                | No payment, or it was rejected. See `error`.                                                       | No      |
| `400`                | Required parameters are missing.                                                                   | No      |
| `403`                | The agent's spending rules refused the call.                                                       | No      |
| `502`                | The API failed or timed out. Body has `charged: false`.                                            | No      |
| `429`                | Too many requests from one address. Wait for the `Retry-After` seconds.                            | No      |
| `503`                | The API is paused or not verified yet, or settlement is briefly paused. Retry after `Retry-After`. | No      |

## Rate limits

Limits are per IP address and generous for normal agents. Paid calls through `/x/<api>` allow 600 requests a minute. Search allows 120 a minute and the catalog 300 a minute. Over the limit you get `429` with a `Retry-After` header, and nothing is charged.

## 402 error values

| `error`                                    | What to do                                                                   |
| ------------------------------------------ | ---------------------------------------------------------------------------- |
| `invalid_payment_header`                   | The header isn't valid base64 JSON.                                          |
| `invalid_signature`                        | Sign the EIP-712 message with the domain above.                              |
| `wrong_recipient`                          | Pay the `payTo` from the 402 response.                                       |
| `insufficient_amount`                      | Authorize at least `amount`.                                                 |
| `expired` / `not_yet_valid`                | Check `validAfter` and `validBefore`.                                        |
| `insufficient_funds`                       | Top up the coin you're paying with: USDG on Robinhood Chain or USDC on Base. |
| `network_mismatch` / `unsupported_network` | Pay with one of the options in `accepts`.                                    |
| `authorization_already_used`               | Sign a new authorization with a fresh nonce.                                 |
| `settlement_failed`                        | Nothing was charged. Retry with a new signature.                             |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://fourohtwo.gitbook.io/fourohtwo-docs/reference/errors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
