Skip to main content
Error bodies on the Messages and Routes API endpoints use the Anthropic format, {"type": "error", "error": {"type": "...", "message": "..."}}. A 402 looks like this, and its message links to the page where you add funds:
See the Routes API reference for causes and limits specific to the Routes API. A 404 with model_not_found means generation does not accept that model ID: a prefixed ID such as rayline/arc-swift, an unknown arc-* ID, or the removed rayline-router. The Routes API accepts only ARC IDs and refuses any other with 400: unknown_model for a prefixed or unknown arc-* ID, arc_model_required for a provider model. Check the tier IDs.

Troubleshooting

  • Use the base URL and key for the same environment and workspace.
  • Inspect the status and error message without logging your API key.
  • Do not retry 400, 401, 402, 403, 409, or 413; fix the request, add funds, or fix access first.
  • Retry 429 after the Retry-After interval, and 503 or 504 with exponential backoff.
Routes API limits are in the Routes API reference. The Decisions API uses TypeSafe’s error bodies, {"detail": ...}, on /decisions/v1/systemone and /v1/systemone, and the Rayline error format on /v1/decisions, with the code in the x-rayline-error-code header on every refusal but use_routes_endpoint; see Decisions API limits and errors.