all docs
/ errors · HTTP 429

rate_limited

Per-tenant RPS cap exceeded.

What it means

Per-tenant RPS cap exceeded.

How to recognise it

The gateway answers HTTP 429 with x-ace-error: rate_limited on the response, and a body in the shared error envelope:

{
  "error": {
    "message": "...",
    "type": "rate_limited",
    "code": 429
  }
}

On a vendor-shaped surface (/anthropic/…, /gemini/…, /bedrock/…) the body wears that vendor's error envelope instead; the x-ace-error header is the same everywhere.

Is it ACE or the provider?

x-ace-error is present only on errors ACE originated. A vendor error relayed from upstream — a real provider 429, a provider 401 for a bad pass-through key — carries no x-ace-error, and its own type and code mean what the provider says. Read the header before deciding whether to retry, re-mint a key or surface the error.