Ratel Docs
ReferenceHTTP API

Errors

Error bodies, status codes, and when to retry.

A failed request answers with a 4xx or 5xx status and a JSON body. The body shape depends on the endpoint family.

Error bodies

EndpointsShape
Telemetry, catalog snapshot, overrides, skills, jobs, intent graph{ "error": "..." }, plus optional fields
GET /v1/catalog, GET /v2/catalog{ "error": { "code": "...", "message": "..." } }
Embeddings, Tool Picker{ "error": { "message": "...", "type": "..." } }, the OpenAI envelope

In the first shape, error is a sentence on the telemetry and snapshot endpoints, and a machine code on the skills, jobs and intent-graph endpoints. Optional fields:

  • reason: a finer code, for example missing_scope, version_conflict or per_source.
  • message: a sentence to show or log.
  • scope: the scope a 403 is missing.
  • issues or details: what failed validation.
{ "error": "conflict", "reason": "version_conflict" }

The catalog code is one of unauthorized, forbidden, invalid_request, not_found or unavailable.

The OpenAI type is one of invalid_request_error, permission_error, insufficient_quota, rate_limit_error or api_error.

Status codes

StatusCauseFix
400The body or a query parameter is malformed or fails validation.Fix the request. Read issues, details or message.
401No bearer key, or the key is unknown, revoked or expired.Send a valid key. See Authentication.
402Out of Embeddings or Tool Picker credit, or the key's workspace no longer exists.Top up, or use Tool Picker's free instant mode.
403The key does not have the scope the endpoint needs. On skill writes, quota_exceeded: the plan's skill limit is reached.Use a key with the scope, or upgrade the plan.
404The resource does not exist in the key's project.Check the ID and the key's project.
409A version or name conflict, a stale intent graph, or Tool Picker on a project with no synced tools.Re-read and retry, or sync your catalog first.
410The endpoint was removed.Stop calling it. See Removed endpoints.
413The body, the decompressed body, or the item count is over the limit.Send smaller batches.
415Wrong Content-Type, or a Content-Encoding other than gzip or deflate.Send the content type the endpoint accepts.
422Tool Picker could not decide the query.Rephrase it, or use instant.
429A rate limit, or the plan's monthly event limit on POST /v1/traces.Wait Retry-After seconds. For the monthly limit, upgrade in Billing.
500The Platform failed to store the data.Retry with backoff.
502An upstream model provider failed.Retry with backoff.
503The feature is not available on this server, or its database is not configured.Retry later, or check your self-hosted configuration.
504A Tool Picker pick ran past 45 seconds.Retry, or use precise on a large catalog.

Retries

  • A 429 from a rate limit carries Retry-After in seconds. Wait that long, then retry.
  • The monthly event limit 429 on POST /v1/traces has no Retry-After. Retrying does not help until the period resets or the plan changes.
  • Retry 500, 502, 503 and 504 with exponential backoff.
  • Do not retry other 4xx statuses without a change to the request or the key.

Runtime events are idempotent: a retried event with the same event_id counts as a duplicate, not a second event.

Every response carries x-request-id. Quote it when you report a problem.

On this page