Skip to main content

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.

StatuscodeWhat to do
400invalid_inputThe body is wrong; issues lists each field and what is wrong with it. Fix it and send again.
401unauthorizedSend 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.
402insufficient_creditThe 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.
403request_blockedThe request cannot be run. Contact bio@arca.inc and quote the requestId.
403spend_limit_reachedThe 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.
403tier_limitThe request is past the account's tier: the priority queue or a runtime above the tier's cap. Add credit to lift it.
404file_not_foundThat path is not in the job's result. List the files first.
404job_not_foundNo job of that name in your organization. Another organization's job is also a 404.
404molecule_not_foundNo molecule with that id in your results.
404tool_not_foundNo tool of that type. GET /tools lists them.
409idempotency_conflictThat Idempotency-Key was used with a different body. Use a new key for a new request.
409job_not_stoppableThe job is already finished or stopping.
409name_takenA job of that name exists. Pick another jobName.
409not_readyThe job has not finished. Poll GET /jobs until it has.
409quote_exceeds_capThe job's maximum cost is above the maxHoldUsd you sent. Nothing was held; raise the cap or shrink the job.
410result_expiredThe result is no longer stored. Run the job again.
413file_too_largeThe file is over the size one response carries. Download the result zip instead.
429rate_limitedWait Retry-After seconds. The limit is per key, and the number of open jobs is capped.
502result_unreadableThe result exists but a file in it could not be read. Retry, then download the zip.
503service_unavailableRetry with backoff.