Skip to Content

Errors and limits

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

View as Markdown

Status codes

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

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

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

HeaderMeaning
X-RateLimit-LimitTool calls allowed per day
X-RateLimit-RemainingCalls left today after this one
X-RateLimit-ResetUnix time when the day resets

Past the quota the answer is 429 with Retry-After in seconds. Check your token to see where you stand without spending a call.

A blocked estimate is not an error

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.

On this page