Skip to content
Docs

Errors

The API uses conventional HTTP status codes and returns a consistent JSON body for every error, with a human-readable message and a stable machine-readable code.

Error format

HTTP
HTTP/1.1 404 Not Found
Content-Type: application/json

{
  "error": "VM not found",
  "code": "NOT_FOUND"
}

Requests rejected by schema validation additionally include a details array describing each failed field:

HTTP
HTTP/1.1 400 Bad Request
Content-Type: application/json

{
  "error": "Validation error",
  "code": "VALIDATION_ERROR",
  "details": [
    {
      "path": ["name"],
      "message": "Required"
    }
  ]
}

Error codes

HTTP statusCodeMeaning
400VALIDATION_ERRORThe request body or parameters are invalid. Check details if present.
401AUTHENTICATION_ERRORMissing, invalid, expired or revoked API key.
403AUTHORIZATION_ERRORAuthenticated, but not permitted to perform this action.
404NOT_FOUNDThe resource doesn't exist or belongs to a different account.
409CONFLICTThe request conflicts with current state (e.g. duplicate name).
429RATE_LIMITToo many requests. Back off and retry after Retry-After seconds.
500INTERNAL_ERRORSomething went wrong on our side. Safe to retry with backoff.

Individual endpoints may return more specific codes (e.g. SCRIPT_NOT_FOUND). Always branch on the HTTP status first and treat code as a refinement.

Rate limits

The API allows 600 requests per minute per IP, measured over a sliding window. Every response carries the IETF standard rate-limit headers (draft-ietf-httpapi-ratelimit-headers) so clients can self-throttle in real time. The legacy X-RateLimit-* pair is also sent for older clients.

HeaderMeaning
RateLimit-LimitMaximum requests allowed in the window
RateLimit-RemainingRequests remaining in the current window
RateLimit-ResetSeconds until the quota resets
RateLimit-PolicyThe quota policy: 600;w=60 means 600 requests per 60-second window
Retry-AfterSeconds to wait before retrying (on 429 responses only)
X-RateLimit-Limit / X-RateLimit-RemainingLegacy pair, kept for older clients. Prefer the RateLimit-* headers.
HTTP
HTTP/1.1 429 Too Many Requests
Retry-After: 12
RateLimit-Limit: 600
RateLimit-Remaining: 0
RateLimit-Reset: 12
RateLimit-Policy: 600;w=60
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 0

{
  "error": "Too many requests. Try again in 12s.",
  "code": "RATE_LIMIT"
}

Something unclear or out of date? Tell us, or read this page as Markdown.