all docs
/ errors · HTTP 403

model_not_in_scope

Requested model is not enabled for this tenant.

What it means

The requested model is not enabled for this tenant.

How to recognise it

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

{
  "error": {
    "message": "...",
    "type": "model_not_in_scope",
    "code": 403
  }
}

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 403 errors

  • invalid_admin_key: Admin-only endpoint called with a non-admin key.
  • skill_locked: A per-request skill override (skill_overrides or x-ace-skills) on a skill the org has locked.
  • idp_forbidden_error: A deployment fronted by a corporate identity provider accepted the caller's IdP token but its group mapping grants no access.