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:
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, or413; fix the request, add funds, or fix access first. - Retry
429after theRetry-Afterinterval, and503or504with exponential backoff.
{"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.