Skip to main content
Errors on model endpoints come in the error format of the API you call, so OpenAI and Anthropic SDKs raise their usual exceptions. Every error body also has a top level message with the same text. The OpenAI format looks like this:
The Anthropic format has type: "error", an error object with type and message, and the request_id. Platform API endpoints such as /agent/v1/... return a JSON object with message. Every response carries an x-request-id header. Include it when you contact support.

Authentication (401)

After many failed attempts from the same network, further attempts get 429 for a short time.

Permissions (403)

Requests (400, 404)

Limits (429)

A token limit 429 whose message says the request alone is larger than the limit cannot succeed by retrying. Shorten the request or ask for a higher quota. See Limits and usage.

Server and provider errors (5xx)

Common setup mistakes

ANTHROPIC_API_KEY in your shell takes precedence over ANTHROPIC_AUTH_TOKEN. Unset it, restart Claude Code and check /status.
Cursor calls the base URL from its own servers and sends Claude and Gemini model names to its own keys. Add the anthropic/ or gemini/ prefix to those model IDs, and keep Override OpenAI Base URL on.
Embeddings are not on gateway.langdock.com yet. Call https://api.langdock.com/openai/{region}/v1/embeddings with a key that has the Embedding scope.
Running an agent needs Run agents on a Model Gateway key, or an Agent scope on a Platform API key, and the call goes to api.langdock.com, not to the gateway.
Check in your account settings whether the key expired, was revoked or was rotated, and whether your spend limit is used up. An admin can also revoke keys or change which scopes personal keys may use. Removed scopes do not come back on that key.