Skip to content
Wardcase Docs

Errors and limits

Nothing on this page is typed by hand: the problem types come from the API contract, the limits from the service’s configuration, contract and code, and the SDK behaviour from the SDKs. When one of them changes, this page changes with the next build.

Every error is an RFC 9457 problem document with the content type application/problem+json. Branch on type, or on its last segment, the slug; the slug is stable. title and detail are for people.

{
"type": "https://docs.wardcase.com/errors/rate-limited",
"title": "Too many requests",
"status": 429,
"detail": "Rate limit exceeded, retry after 12 seconds"
}

In the SDKs every failure is a VivariumError with status, type, title, detail, instance, errors (the field errors of a validation failure) and code, the slug.

SlugStatusWhenSDK retries
validation400The request body or a parameter is not valid.No
unauthorized401The request has no valid API key or dashboard session.No
forbidden403The credential is valid but lacks the scope this endpoint needs.No
not-found404The resource does not exist, or your organization cannot see it.No
conflict409The resource exists but is not in a state that allows this request.No
free-tier-limit402The organization is on the free tier and has reached one of its limits: 20 sandbox-hours of the small size a month, or 2 sandboxes running at once.No
org-blocked403The organization cannot create sandboxes until a review clears it.No
rate-limited429The API key, or its organization, sent more requests than the limit allows: 60 writes or 600 reads a minute, counted per key and per organization.Yes, after Retry-After
no-capacity503No host in the requested region can take another sandbox right now.Yes
host-timeout504Each request the control plane sends to a host has a deadline, and the host did not answer before it.When safe to repeat
payload-too-large413A request or a file is larger than the API accepts: a file upload over 50 MiB, a JSON body over 256 KiB, or a download larger than the sandbox's disk.No
internal500Something failed on our side.When safe to repeat

“Safe to repeat” means reads, deletes, file writes, and requests that carry an Idempotency-Key, which the SDKs send on every sandbox create. A command is retried only on 429, 502 and 503, the answers that mean the request was not processed. The SDKs retry up to three times by default, and wait at most 60 seconds for a Retry-After; a longer wait comes back to you as the error.

When no HTTP answer arrives, or an operation the SDK waits for does not end the way it waited for, the SDKs raise the same error class with status 0 and one of these codes:

CodeMeaningSDK retries
network-errorThe request got no answer: the connection or TLS failed, or DNS did not resolve.Yes, when the request is safe to repeat
timeoutNo answer within the client's timeout, or a wait for a sandbox, a snapshot or an export gave up before it settled.No
operation-failedA sandbox did not start, or a snapshot or an audit export ended in failed instead of ready.No
stream-errorA streamed command's output broke off, or ended with an error event, before the exit event.No

A command that runs past its own timeout is not an error: the result has timedOut (timed_out in Python) set, and the sandbox keeps running. A non-zero exit code is not an error either.

  • A command’s output is cut at the output limit below and the result says truncated. Write large output to a file under /work and read what you need.
  • Requests to an exposed port do not count as activity. A sandbox that only serves a port is destroyed at its idle timeout unless you call keepalive.
  • File uploads pass through the API and are limited in size. Larger inputs are better fetched from inside the sandbox, if its egress policy allows the source.
LimitValue
Idle timeout Default 600 seconds, from 30 to 21600 (6 hours)
Hard timeout Default 3600 seconds, from 60 to 86400 (24 hours)
Time to become ready 120 seconds, after which the sandbox ends as failed
CPU, memory and disk Set by the size
Metadata Up to 20 keys
Host out of contact After 10 minutes its sandboxes are recorded as lost
LimitValue
Command timeout Default 300 seconds, at most 3600
Output per command 10 MiB of stdout and stderr; the rest is cut and truncated is true
LimitValue
File upload 50 MiB per file
File download Up to the size of the sandbox's disk
Where files can live Under /work, the sandbox's writable volume, up to the size's disk limit
LimitValue
Rate limit 60 write requests and 600 read requests a minute, per API key and per organization
JSON request body 256 KiB
Page size for lists Default 50, at most 200
Idempotency-Key Up to 128 characters, remembered for 24 hours
Audit export download link Valid for one hour
Sign-in with an invite code 10 attempts per IP address an hour
LimitValue
SSH token lifetime 10 minutes
SSH region EU West (eu-west) during early access
Ports you can expose 1 to 65535
LimitValue
Rules per egress policy 200
Egress policy name 80 characters
Snapshot name 80 characters
Host rules looked up again Every 5 minutes
LimitValue
Egress events in the audit trail 100 per second per sandbox; the rest are counted in suppressed
Events per page Default 50, at most 200
LimitValue
Small sandbox-hours a month 20
Sandboxes running at once 2
Sizes small

Reaching a free tier limit returns free-tier-limit (402). See Billing and free tier.