Skip to main content
Most Task, Analytics, and Billing JSON endpoints return errors in the standard envelope described on API reference overview. This page collects exceptions and practical handling so you do not have to infer behavior from status codes alone.

Standard JSON error envelope

Common error.code values include BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, TOO_MANY_REQUESTS, NOT_IMPLEMENTED, and INTERNAL_SERVER_ERROR. Your client should branch on HTTP status and error.code, not only on message text.

401 vs 403

Refresh or re-create API keys when scopes change; fix Authorization: Bearer … or X-API-Key usage when the deployment expects a specific header.

Rate limiting (429)

Control-plane throttling and preview quotas use different bodies and headers. Read Rate limits for RPM defaults, X-RateLimit-* headers, preview preview_limit_exceeded shapes, and backoff guidance (there is typically no Retry-After on control-plane 429).

Feature flags and disabled routes

Some routes return 404 NOT_FOUND when a capability is turned off in your environment (for example execution-plan steps when the plan feature is disabled). The OpenAPI operation description in the API Reference tab usually states the exact message—search the operation you are calling.

Responses without the success envelope

Where to look next