Errors
Every error is {ok: false, error, code, requestId, retryable}. Some codes add fields: retryAfterSeconds on rate_limited, balanceUsd and requiredUsd on insufficient_credit, and limitUsd, spentUsd, requiredUsd and availableAt on spend_limit_reached. validate-job returns a refusal up front as refusal: {code, message}, so a client sees why before it submits. Quote the requestId when asking for help.
| Status | code | What to do |
|---|---|---|
| 400 | invalid_input | The body is wrong; issues lists each field and what is wrong with it. Fix it and send again. |
| 401 | unauthorized | Send Authorization: Bearer <key> with a live key. Do not retry with the same key. A key that is unknown, or belongs to an organization without Bio API access, is answered with an empty 404 instead, so a 404 on every call means check the key and the organization first. |
| 402 | insufficient_credit | The balance does not cover the job's maximum cost, or the free tier's jobs for the month are used. Add credit; retrying before that fails the same way. |
| 403 | request_blocked | The request cannot be run. Contact bio@arca.inc and quote the requestId. |
| 403 | spend_limit_reached | The organization's daily spend limit would be passed. It frees up as jobs age past 24 hours, or an organization admin raises it. The body says how much is committed and when there is room. |
| 403 | tier_limit | The request is past the account's tier: the priority queue or a runtime above the tier's cap. Add credit to lift it. |
| 404 | file_not_found | That path is not in the job's result. List the files first. |
| 404 | job_not_found | No job of that name in your organization. Another organization's job is also a 404. |
| 404 | molecule_not_found | No molecule with that id in your results. |
| 404 | tool_not_found | No tool of that type. GET /tools lists them. |
| 409 | idempotency_conflict | That Idempotency-Key was used with a different body. Use a new key for a new request. |
| 409 | job_not_stoppable | The job is already finished or stopping. |
| 409 | name_taken | A job of that name exists. Pick another jobName. |
| 409 | not_ready | The job has not finished. Poll GET /jobs until it has. |
| 409 | quote_exceeds_cap | The job's maximum cost is above the maxHoldUsd you sent. Nothing was held; raise the cap or shrink the job. |
| 410 | result_expired | The result is no longer stored. Run the job again. |
| 413 | file_too_large | The file is over the size one response carries. Download the result zip instead. |
| 429 | rate_limited | Wait Retry-After seconds. The limit is per key, and the number of open jobs is capped. |
| 502 | result_unreadable | The result exists but a file in it could not be read. Retry, then download the zip. |
| 503 | service_unavailable | Retry with backoff. |