Errors
The console /v1 API returns a JSON object with a stable error code and a human-readable message (plus field on validation errors):
{ "error": "invalid_request", "message": "vcpus must be an integer between 1 and 64", "field": "vcpus" }Handle errors using the HTTP status and error code, not the message text.
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_request |
Missing, invalid, or out-of-range field | Fix the request (field identifies it on /v1) |
| 400 | life_limit_exceeded |
Requested Box lifetime exceeds the team limit; no Box is created | Use a duration within the maximum in the error message, or ask an administrator to raise the limit |
| 400 | gpu_resource_ratio_exceeded |
GPU Box resources exceed its proportional share on every matching machine | Reduce resources using the returned limits, or request more GPUs |
| 401 | unauthorized |
Missing, invalid, or expired credential | Send a valid API key or sign in again |
| 402 | insufficient_credits |
Credits cannot fund the requested Box lifetime; no Box is created | Add credits or request a duration within the maximum in the error message |
| 403 | forbidden |
Caller lacks permission or key scope | Use a credential with the required role or scope |
| 403 | no_organization |
Account does not belong to a team | Accept a team invitation |
| 403 | organization_suspended |
Team is suspended | Contact support |
| 404 | not_found |
Resource not found in your team or scope | Check the ID or project slug |
| 409 | conflict |
Resource already exists or has active dependencies | Choose another slug or stop active Boxes first |
| 409 | gpu_unavailable |
No machine available to the project has that GPU | Pick a GPU from GET /v1/prices |
| 409 | hardware_unavailable |
No machine available to the project matches the hardware request | Pick a profile from GET /v1/hardware |
| 409 | organization_not_provisioned |
Compute is not enabled for the team yet (/v1) |
Contact support |
| 409 | project_not_provisioned |
Compute is not enabled for the selected project (/compute) |
Contact your administrator |
| 409 | idempotency_conflict |
Idempotency-Key was already used with a different request |
Resend the original request or use a new key |
| 409 | create_failed |
Original sandbox creation failed or expired before submission | Start a new request with a new Idempotency-Key |
| 409 | cpu_usage_unknown, memory_usage_unknown, accelerator_usage_unknown |
An active Box has an unknown resource reservation | Ask an administrator to review active reservations |
| 410 | sandbox_gone |
Sandbox for this Idempotency-Key left backend retention |
Start a new sandbox with a new key |
| 413 | body_too_large |
JSON request body exceeds 2 MiB (/compute) |
Reduce the request payload size |
| 429 | sandbox_limit_reached |
Team concurrent Box limit reached | Stop a Box or request a higher limit |
| 429 | cpu_limit_reached, memory_limit_reached, accelerator_limit_reached |
Request exceeds team vCPU, memory, or accelerator limit across active Boxes | Stop an active Box or request a higher limit |
| 502 | compute_error |
Compute backend failed to complete the request | Retry after Retry-After if present (also returned with 429 when upstream throttles) |
| 503 | service_busy |
Service temporarily busy | Retry after Retry-After; safe to replay creates with the same Idempotency-Key |
| 503 | create_pending |
Sandbox admission or settlement is still in progress | Retry with the same Idempotency-Key after Retry-After |
| 503 | node_pool_sync_pending |
The organization or project machine pool update has not finished syncing | Ask an administrator to retry saving the org/project machine pool (no Retry-After; do not retry automatically) |
| 503 | pricing_unavailable |
Compute pricing is not configured | Contact your administrator (do not retry automatically) |
| 503 | compute_unavailable |
Compute is not configured for this deployment | Contact your administrator |
| 504 | compute_timeout |
Compute backend did not respond or confirm completion in time | Does not set Retry-After; check state or replay writes with the same Idempotency-Key |
GPU resource limits
Section titled “GPU resource limits”GPU Box creation can return 400 gpu_resource_ratio_exceeded. Reduce the requested vCPUs, memory ceiling, or disk, or request more GPUs. This is a configuration refusal and carries no Retry-After. Its details contains gpu_count, requested resource amounts, and a limits array. Each entry is one matching machine’s proportional resource limits, with exceeded naming the resources above those limits. All three limits must be met on the same machine; limits from different entries cannot be combined. Machine identities are omitted.
The console API includes details beside error and message. The compute API includes it inside error, beside code and detail; the human-readable message also includes allowed configurations for CLI clients.
Request IDs
Section titled “Request IDs”Every response includes an X-Request-Id header. Pass your own X-Request-Id (1–128 characters from letters, digits, ., _, :, or -) to preserve it; invalid values are replaced with a generated ID. Quote X-Request-Id when reporting failed requests.
Compute API errors
Section titled “Compute API errors”The /compute API returns {"error":{"code":"…","detail":"…"}} and sets X-BB-Error-Code to the error code. The Python SDK raises RsiboxAPIError with status, code, detail, and request_id (from X-Request-Id; transport errors raise TimeoutError or urllib.error.URLError).
The CLI and SDK automatically retry 429, 502, or 503 responses only when Retry-After is present — specifically transient compute_error, create_pending, and service_busy. Limit errors, node_pool_sync_pending, pricing_unavailable, compute_unavailable, and 504 compute_timeout do not carry Retry-After.
When a write’s outcome is uncertain (such as a timeout or 5xx), keep the same project, request body, and Idempotency-Key when checking or replaying it — see Compute HTTP requests and SDK retry handling. For lifecycle failure and wait reasons (state_reason_code / reason_code), see Timeline.