$BFORGERobinhood ChainCA0xe1c0…c87bToken page
Request access

Reference

Errors

The error shape, every code, and which ones to retry.

Shape

{
  "error": {
    "code": "gpus_out_of_range",
    "message": "gpus must be 1 to 8, or 16",
    "field": "gpus"
  },
  "request_id": "req_7Hc2kq"
}

code is stable and safe to match on. message is for people and may change. field is set when one field caused it.

Codes

HTTPCodeMeansRetry
400bad_jsonBody is not valid JSONNo
401no_keyMissing or unknown keyNo
403scopeKey lacks the scope, for example runNo
404not_foundNo such job, session or month for your teamNo
409already_endedStopping a job that already endedNo
422gpus_out_of_rangegpus not 1 to 8 or 16No
422limit_too_longlimit over 14d, or past your Anvil termNo
422no_anvilplan anvil without an active AnvilNo
422bank_emptyplan bank with no hours and overflow stopNo
422image_unreachableImage could not be resolvedNo
429rate_limitedOver 300 requests a minuteYes, after Retry-After
503previewYour key is not active yetNo
503maintenanceAPI in a maintenance windowYes, with backoff

Retrying

Retry 429 and 503 maintenance with exponential backoff, starting at 1 second. Do not retry other 4xx errors: the same request gets the same answer. POST /jobs accepts an Idempotency-Key header, so a retried start never creates two jobs.