Reference

Errors

Status codes and what to do about them.

Errors use Anthropic's format, so SDKs raise their usual typed exceptions:

402
{
  "type": "error",
  "error": {
    "type": "billing_error",
    "message": "Insufficient balance. Top up at https://gethephaestus.com/dashboard/billing"
  }
}
StatusTypeMeaning and fix
400invalid_request_errorBad JSON, unknown model, or an unsupported feature. The message says which.
401authentication_errorMissing, wrong or revoked key.
402billing_errorBalance is empty, or the key reached its spending cap. Top up or raise the cap.
403permission_errorAccount suspended. Contact support.
404not_found_errorEndpoint not available on Hephaestus.
429rate_limit_errorToo many requests or too many in flight. Wait for retry-after seconds.
5xx / 529api_error / overloaded_errorRelayed from Anthropic. Retry with backoff. Never billed.