Skip to main content
Every failed call answers a JSON body with the same fields, and the same envelope is the last line of a stream that fails after it started. Quote request_id (also the x-request-id response header) when you write to support@styne.ai.
A 429 or 503 carries a Retry-After header in seconds, except a quota such as quota_exceeded. Wait that long before the next try.

Origin

origin says who caused the failure, so an eval or RL harness can tell a failed rollout from a failed platform. It is set only from evidence the service holds (the status, a typed refusal, the node’s own report), never guessed from the message. A command killed at its timeoutMs is customer_limit even on a busy node: the limit you set was reached, and the service does not report why the command was slow.

Codes

Plan and limit refusals

These answers carry an extra error field naming the rule, and message says it in words. For a 402 the error_code is the same name as error.

Retrying

Retry 429 (except the quotas quota_exceeded, resident_limit and storage_limit), 503 and 504 after Retry-After (or one second when it is absent) with a growing delay. A refused create holds nothing, so repeating it is safe. Do not retry 400, 401, 403, 404, 410 or 412 unchanged. A command that was running when a call failed may still be running: look before you start it again.

The E2B SDKs

The unmodified E2B SDKs raise their own exceptions for these answers: a 401 is AuthenticationException, a 404 NotFoundException and a 503 ServiceBusyException, which are not subclasses of SandboxException in the Python SDK, so catch them by name. Sandbox.kill() returns False only on 404; the 410 of an ended sandbox raises.