all docs
/ errors · HTTP 402

onboarding_incomplete

Missing provider key (stored/pass-through) or unconfigured model/router.

What it means

Authenticated, but there is nothing to serve the request with: no provider key (stored or pass-through), or no model given and no router configured.

How to recognise it

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

{
  "error": {
    "message": "...",
    "type": "onboarding_incomplete",
    "code": 402
  }
}

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.

Other 402 errors

  • budget_exhausted: Real-time spend cap breached; returns reset time and usage headers.