# Errors and limits

URL: https://docs.ajusteur.com/mcp/errors

Status codes, tool refusals, the daily quota and the rate limit headers

## Status codes [#status-codes]

| Status | Meaning | What to do |
| --- | --- | --- |
| `200` | The message was handled. The tool may still have refused its input, see below. | Read `result`. |
| `401` | No live API token in the `Authorization` header. | Check the token. It may have been revoked or rotated. |
| `405` | Only `POST`. There are no sessions to open or close. | Post a JSON-RPC message. |
| `429` | The daily quota is used. | Wait for the number of seconds in `Retry-After`. |

## When a tool refuses [#when-a-tool-refuses]

A design the workshop cannot build is not a transport error. The answer is HTTP `200` with `isError: true`, and the reasons are in `structuredContent.error.issues`. Read the issues, fix the input and call again. Do not paper over a refusal with a number of your own.

## Daily quota [#daily-quota]

Each token has a daily number of tool calls, counted per UTC day. Every answer from `/api/mcp` carries three headers.

| Header | Meaning |
| --- | --- |
| `X-RateLimit-Limit` | Tool calls allowed per day |
| `X-RateLimit-Remaining` | Calls left today after this one |
| `X-RateLimit-Reset` | Unix time when the day resets |

Past the quota the answer is `429` with `Retry-After` in seconds. [Check your token](/authentication#check-your-token) to see where you stand without spending a call.

## A blocked estimate is not an error [#a-blocked-estimate-is-not-an-error]

[`estimate_get`](/tools/estimate_get) answers `blocked` while a rate it needs is not approved, and `blockers.missing` names each one. Tell the customer that Ajusteur prices this by hand. It is the correct answer, not a failure to retry.

