DaytonaError
Section titled “DaytonaError”Properties:
statusCode?numbercode?ErrorCode | stringsource?stringtraceId?stringretryAfterSeconds?numberfeature?stringentitlement?stringreplacement?stringfirstAvailableCursor?stringstated?stringactual?stringregion?stringerrorCode?stringrequestId?stringretryAfterMs?number
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DaytonaError( message: string, statusCode?: number, code?: string, source?: string, envelope?: ErrorEnvelope): DaytonaError;Parameters:
messagestringstatusCode?numbercode?stringsource?stringenvelope?ErrorEnvelope
Returns:
DaytonaError
Methods
Section titled “Methods”[Symbol.hasInstance]()
Section titled “[Symbol.hasInstance]()”[Symbol.hasInstance](value: unknown): boolean;Native prototype check, or a match against the same class of another
loaded copy of this module (ESM and CJS builds of @daytona/sdk/v2 in one
process): see registerV2ErrorClass. User subclasses have no key and
keep the native check only.
Parameters:
valueunknown
Returns:
boolean
FeatureNotEnabledError
Section titled “FeatureNotEnabledError”BadRequestError
Section titled “BadRequestError”BillingDisabledError
Section titled “BillingDisabledError”BillingUnreachableError
Section titled “BillingUnreachableError”BillingUnavailableError
Section titled “BillingUnavailableError”BillingNotProvisionedError
Section titled “BillingNotProvisionedError”BillingAccountConflictError
Section titled “BillingAccountConflictError”ChargeNotFoundError
Section titled “ChargeNotFoundError”ChargeNotSucceededError
Section titled “ChargeNotSucceededError”CouponAlreadyRedeemedError
Section titled “CouponAlreadyRedeemedError”CouponExpiredError
Section titled “CouponExpiredError”CouponLimitReachedError
Section titled “CouponLimitReachedError”CouponNotFoundError
Section titled “CouponNotFoundError”InvoiceNotFinalizedError
Section titled “InvoiceNotFinalizedError”InvoiceNotFoundError
Section titled “InvoiceNotFoundError”InvoiceNotPayableError
Section titled “InvoiceNotPayableError”AutomaticTopUpNotAvailableError
Section titled “AutomaticTopUpNotAvailableError”PaymentMethodRequiredError
Section titled “PaymentMethodRequiredError”PlanChangePendingError
Section titled “PlanChangePendingError”PlanManagedByOperatorError
Section titled “PlanManagedByOperatorError”PlanRequiresSalesError
Section titled “PlanRequiresSalesError”PlanUnchangedError
Section titled “PlanUnchangedError”UnknownPlanError
Section titled “UnknownPlanError”BucketCreateFailedError
Section titled “BucketCreateFailedError”BucketDeleteFailedError
Section titled “BucketDeleteFailedError”BucketNotEmptyError
Section titled “BucketNotEmptyError”AuthenticationError
Section titled “AuthenticationError”AuthorizationError
Section titled “AuthorizationError”NotFoundError
Section titled “NotFoundError”RequestTimeoutError
Section titled “RequestTimeoutError”SandboxCreateConnectionError
Section titled “SandboxCreateConnectionError”The connection failed while the create() request was in flight. Same
outcome as SandboxCreateRequestTimeoutError: the sandbox may or may
not exist; retry create() with the same idempotencyKey and create options,
in the same project and coordinator or cell.
Properties:
idempotencyKeystring
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SandboxCreateConnectionError( idempotencyKey: string, detail: string): SandboxCreateConnectionError;Parameters:
idempotencyKeystringdetailstring
Returns:
SandboxCreateConnectionError
SandboxCreateRequestTimeoutError
Section titled “SandboxCreateRequestTimeoutError”The create() request itself timed out before the server answered. The
server may still have created the sandbox. idempotencyKey is the key the
request was sent with. Retry with that key and identical create options, in
the same project and coordinator or cell, to recover the sandbox (or create
it if the first request never landed). New records reject changed requests;
historical mappings without a request digest may replay the original without
detecting changes.
Properties:
idempotencyKeystring
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SandboxCreateRequestTimeoutError( idempotencyKey: string): SandboxCreateRequestTimeoutError;Parameters:
idempotencyKeystring
Returns:
SandboxCreateRequestTimeoutError
SandboxCreateTimeoutError
Section titled “SandboxCreateTimeoutError”create() ran out of caller budget while the sandbox was still starting.
The sandbox was created and is left running; sandboxId lets the caller
pick it up (daytona.get(sandboxId)) or delete it.
Properties:
sandboxIdstring
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SandboxCreateTimeoutError(sandboxId: string): SandboxCreateTimeoutError;Parameters:
sandboxIdstring
Returns:
SandboxCreateTimeoutError
SandboxTerminalStateError
Section titled “SandboxTerminalStateError”waitForState() saw the sandbox reach a terminal state before any target.
state is the observed public sandbox state (e.g. 'destroyed').
Properties:
stateSandboxStaterawState?string
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SandboxTerminalStateError( sandboxId: string, state: SandboxState, rawState?: string): SandboxTerminalStateError;Parameters:
sandboxIdstringstateSandboxStaterawState?string
Returns:
SandboxTerminalStateError
DockerNotReadyError
Section titled “DockerNotReadyError”sandbox.docker.waitUntilReady() saw Docker Engine settle in a state that
will not become ready in this boot (failed, not_present, disabled,
unmanaged, unsupported, or deferred with reason
function-ready-template). status is the observed Docker status; its
reason says why, and processId (when set) names the process whose logs
hold Docker’s output. The sandbox itself stays usable.
Properties:
statusDockerStatus
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DockerNotReadyError(status: DockerStatus): DockerNotReadyError;Parameters:
statusDockerStatus
Returns:
DockerNotReadyError
DockerWaitTimeoutError
Section titled “DockerWaitTimeoutError”sandbox.docker.waitUntilReady() ran out of caller budget before Docker
Engine became ready. status is the last observed Docker status
(starting, or deferred while the boot has not started Docker yet), or
undefined when no status answer arrived before the deadline (for example a
stalled first request).
Properties:
status?DockerStatus
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DockerWaitTimeoutError(status: DockerStatus | undefined): DockerWaitTimeoutError;Parameters:
statusDockerStatus | undefined
Returns:
DockerWaitTimeoutError
ConflictError
Section titled “ConflictError”PreconditionFailedError
Section titled “PreconditionFailedError”GoneError
Section titled “GoneError”PayloadTooLargeError
Section titled “PayloadTooLargeError”UnsupportedMediaTypeError
Section titled “UnsupportedMediaTypeError”UnprocessableEntityError
Section titled “UnprocessableEntityError”MethodNotAllowedError
Section titled “MethodNotAllowedError”ServiceUnavailableError
Section titled “ServiceUnavailableError”InternalServerError
Section titled “InternalServerError”RateLimitError
Section titled “RateLimitError”LimitExceededError
Section titled “LimitExceededError”LIMIT_EXCEEDED (429): an organization limit is exhausted.
Subclasses RateLimitError, so catch/instanceof RateLimitError keeps
matching; limit is the limit’s stable machine name (e.g. max_concurrent_vms)
and current/max are the counts the refusal was computed from.
Fields are undefined when a body omits or malforms them.
Properties:
limit?stringcurrent?numbermax?number
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LimitExceededError( message: string, statusCode?: number, code?: string, source?: string, envelope?: ErrorEnvelope): LimitExceededError;Parameters:
messagestringstatusCode?numbercode?stringsource?stringenvelope?ErrorEnvelope
Returns:
LimitExceededError
PreconditionRequiredError
Section titled “PreconditionRequiredError”ConnectionError
Section titled “ConnectionError”TimeoutError
Section titled “TimeoutError”NotSupportedError
Section titled “NotSupportedError”ProcessNotFoundError
Section titled “ProcessNotFoundError”ProcessStartFailedError
Section titled “ProcessStartFailedError”ProcessTerminalError
Section titled “ProcessTerminalError”ProcessExecutionTimeoutError
Section titled “ProcessExecutionTimeoutError”NameConflictError
Section titled “NameConflictError”NotSupportedForClassError
Section titled “NotSupportedForClassError”OrgSuspendedError
Section titled “OrgSuspendedError”ProjectBudgetExceededError
Section titled “ProjectBudgetExceededError”PROJECT_BUDGET_EXCEEDED (402): the project reached its monthly budget. New sandboxes cannot start in it until the budget is raised or removed, or the next calendar month (UTC) begins.
OriginImportOnlyError
Section titled “OriginImportOnlyError”OverloadedError
Section titled “OverloadedError”InvalidCursorError
Section titled “InvalidCursorError”CursorExpiredError
Section titled “CursorExpiredError”StdinClosedError
Section titled “StdinClosedError”StdinUnavailableError
Section titled “StdinUnavailableError”ProtectedProcessError
Section titled “ProtectedProcessError”RateLimitedError
Section titled “RateLimitedError”ReadOnlyUnsupportedError
Section titled “ReadOnlyUnsupportedError”UnsupportedOperationError
Section titled “UnsupportedOperationError”UnsupportedVolumeTypeError
Section titled “UnsupportedVolumeTypeError”SessionNotFoundError
Section titled “SessionNotFoundError”SessionEndedError
Section titled “SessionEndedError”SearchNotConfiguredError
Section titled “SearchNotConfiguredError”SearchUnavailableError
Section titled “SearchUnavailableError”SecretAlreadyExistsError
Section titled “SecretAlreadyExistsError”SandboxNotRunningError
Section titled “SandboxNotRunningError”SandboxStartFailedError
Section titled “SandboxStartFailedError”SandboxWakingError
Section titled “SandboxWakingError”KernelUnavailableError
Section titled “KernelUnavailableError”LspNotStartedError
Section titled “LspNotStartedError”LspServerUnavailableError
Section titled “LspServerUnavailableError”AddonUnavailableError
Section titled “AddonUnavailableError”FileNotFoundError
Section titled “FileNotFoundError”InvalidFilePathError
Section titled “InvalidFilePathError”FileAccessDeniedError
Section titled “FileAccessDeniedError”FileReadFailedError
Section titled “FileReadFailedError”AtomicUploadUnsupportedError
Section titled “AtomicUploadUnsupportedError”GitAuthFailedError
Section titled “GitAuthFailedError”GitRepoNotFoundError
Section titled “GitRepoNotFoundError”GitBranchNotFoundError
Section titled “GitBranchNotFoundError”GitBranchExistsError
Section titled “GitBranchExistsError”DesktopNotReadyError
Section titled “DesktopNotReadyError”FsFreezeUnsupportedError
Section titled “FsFreezeUnsupportedError”FS_FREEZE_UNSUPPORTED: runner-only control route; the guest has no freezable scratch filesystem.
NoDefaultGatewayError
Section titled “NoDefaultGatewayError”NO_DEFAULT_GATEWAY: runner-only control route; the guest has no usable default gateway yet. Retry.
ImageNotFoundError
Section titled “ImageNotFoundError”ImageNotReadyError
Section titled “ImageNotReadyError”ImageFormatOutdatedError
Section titled “ImageFormatOutdatedError”IMAGE_FORMAT_OUTDATED (409): the image is stored in an older format than
the current one (Image.formatOutdated) and this door cannot convert it.
Convert it with POST /images/{id}/convert, or create a Linux sandbox from
it, which converts it first.
ImageBuildFailedError
Section titled “ImageBuildFailedError”Properties:
imageId?stringbuildErrorstring
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ImageBuildFailedError( message: string, statusCode?: number, code?: string, source?: string, envelope?: ErrorEnvelope, imageId?: string): ImageBuildFailedError;Parameters:
messagestringstatusCode?numbercode?stringsource?stringenvelope?ErrorEnvelopeimageId?string
Returns:
ImageBuildFailedError
ImageClassMismatchError
Section titled “ImageClassMismatchError”ImageNameTakenError
Section titled “ImageNameTakenError”ImageNameReservedError
Section titled “ImageNameReservedError”IdleOutOfRangeError
Section titled “IdleOutOfRangeError”CreateTtlOutOfRangeError
Section titled “CreateTtlOutOfRangeError”SnapshotNotFoundError
Section titled “SnapshotNotFoundError”SnapshotNotReadyError
Section titled “SnapshotNotReadyError”SnapshotClassMismatchError
Section titled “SnapshotClassMismatchError”TransferCancelledError
Section titled “TransferCancelledError”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TransferCancelledError(message = 'file transfer cancelled'): TransferCancelledError;Parameters:
messagestring = ‘file transfer cancelled’
Returns:
TransferCancelledError
BuildLogInterruptedError
Section titled “BuildLogInterruptedError”Last successfully delivered checkpoint. Callback failures never auto-retry.
Properties:
cause?unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BuildLogInterruptedError( message: string, cursor?: string, code = 'BUILD_LOG_INTERRUPTED', statusCode?: number): BuildLogInterruptedError;Parameters:
messagestringcursor?stringcodestring = ‘BUILD_LOG_INTERRUPTED’statusCode?number
Returns:
BuildLogInterruptedError
isKnownErrorCode
Section titled “isKnownErrorCode”function isKnownErrorCode(code: string | undefined): code is ErrorCode;ApiErrorCode
Section titled “ApiErrorCode”type ApiErrorCode = (typeof API_ERROR_CODES)[number]DaemonErrorCode
Section titled “DaemonErrorCode”type DaemonErrorCode = (typeof DAEMON_ERROR_CODES)[number]GenericErrorCode
Section titled “GenericErrorCode”type GenericErrorCode = (typeof GENERIC_ERROR_CODES)[number]ProxyErrorCode
Section titled “ProxyErrorCode”type ProxyErrorCode = (typeof PROXY_ERROR_CODES)[number]RouterErrorCode
Section titled “RouterErrorCode”type RouterErrorCode = (typeof ROUTER_ERROR_CODES)[number]ErrorCode
Section titled “ErrorCode”type ErrorCode = DaemonErrorCode | ApiErrorCode | ProxyErrorCode | RouterErrorCode | GenericErrorCodeAPI_ERROR_CODES
Section titled “API_ERROR_CODES”const API_ERROR_CODES = [ 'BILLING_DISABLED', 'BILLING_UNREACHABLE', 'BILLING_UNAVAILABLE', 'BILLING_NOT_PROVISIONED', 'CHARGE_NOT_FOUND', 'INVOICE_NOT_FOUND', 'COUPON_NOT_FOUND', 'COUPON_EXPIRED', 'COUPON_LIMIT_REACHED', 'COUPON_ALREADY_REDEEMED', 'INVOICE_NOT_FINALIZED', 'INVOICE_NOT_PAYABLE', 'CHARGE_NOT_SUCCEEDED', 'PLAN_UNCHANGED', 'PLAN_CHANGE_PENDING', 'PLAN_MANAGED_BY_OPERATOR', 'PAYMENT_METHOD_REQUIRED', 'BILLING_ACCOUNT_CONFLICT', 'UNKNOWN_PLAN', 'PLAN_REQUIRES_SALES', 'AUTOMATIC_TOP_UP_NOT_AVAILABLE', 'BUCKET_CREATE_FAILED', 'BUCKET_DELETE_FAILED', 'BUCKET_NOT_EMPTY', 'CREATE_BODY_TOO_LARGE', 'CREATE_OPERATION_RETIRED', 'CROSS_CELL_PLACEMENT_UNSUPPORTED', 'ECR_ACCOUNT_MISMATCH', 'ECR_CREDENTIALS_INVALID', 'ECR_OWNERSHIP_UNVERIFIABLE', 'EMAIL_ACCESS_DENIED', 'ENTITLEMENT_REQUIRED', 'FEATURE_NOT_ENABLED', 'HARDWARE_REPLY_TOO_LARGE', 'INSTANCE_CREATE_FAILED', 'INSTANCE_UNREACHABLE', 'INVALID_FOR_SOURCE', 'INVOCATION_TIMEOUT', 'LIMIT_EXCEEDED', 'IDENTITY_NOT_FOUND', 'WORKOS_SYNC_DISABLED', 'USAGE_UNAVAILABLE', 'BAD_RANGE', 'BAD_RESOLUTION', 'BAD_RUNNER', 'BILLING_FORBIDDEN', 'BILLING_ERROR', 'BUILD_LOG_BATCH_TOO_LARGE', 'IF_MATCH_REQUIRED', 'MANAGEMENT_PLANE_ELSEWHERE', 'NETWORK_POLICY_DOMAINS_REQUIRE_BLOCK_ALL', 'NETWORK_POLICY_TRANSITION_IN_PROGRESS', 'STALE_NETWORK_POLICY_REVISION', 'NOT_SUPPORTED_FOR_CLASS', 'IMAGE_NOT_FOUND', 'IMAGE_NOT_READY', 'IMAGE_BUILD_FAILED', 'DEFAULT_IMAGE_NOT_CONFIGURED', 'IMAGE_FORMAT_OUTDATED', 'IMAGE_CLASS_MISMATCH', 'IMAGE_NAME_TAKEN', 'IMAGE_NAME_RESERVED', 'IDLE_OUT_OF_RANGE', 'CREATE_TTL_OUT_OF_RANGE', 'SNAPSHOT_NOT_FOUND', 'SNAPSHOT_NOT_READY', 'SNAPSHOT_CLASS_MISMATCH', 'SNAPSHOT_IN_PROGRESS', 'IMPORTED_KEY_ALWAYS_SYNCED', 'KEY_SYNC_NOT_APPLICABLE', 'ORG_SUSPENDED', 'ORIGIN_IMPORT_ONLY', 'OVERLOADED', 'PLACEMENT_UNAVAILABLE', 'PROJECT_BUDGET_EXCEEDED', 'RATE_LIMITED', 'READ_ONLY_UNSUPPORTED', 'SEARCH_NOT_CONFIGURED', 'SEARCH_UNAVAILABLE', 'SIGNUP_NOT_INVITED', 'OPERATOR_IDENTITY_REQUIRED', 'SOURCE_AMBIGUOUS', 'SECRET_ALREADY_EXISTS', 'UNSUPPORTED_VOLUME_TYPE', 'WORKLOAD_PLANE_ELSEWHERE', 'NO_ACTIVE_RESERVATION', 'NO_FREE_SLOT', 'RESERVATION_NOT_FOUND', 'NO_MAC_AVAILABLE', 'MAC_DISK_FULL', 'AUTO_RESERVE_LIMIT_REACHED', 'IDEMPOTENCY_KEY_REUSED', 'INSUFFICIENT_BALANCE', 'CHARGE_FAILED', 'CHECKPOINT_PENDING', 'NO_CHECKPOINT', 'CHECKPOINT_FAILED', 'V1_BRIDGE_UNAVAILABLE', 'V1_SANDBOX_NOT_FOUND', 'V1_SANDBOX_NOT_IMPORTABLE', 'V1_BACKUP_REGISTRY_UNCONFIGURED', 'V1_MIGRATION_DEFAULT_PROJECT_ONLY',] as constDAEMON_ERROR_CODES
Section titled “DAEMON_ERROR_CODES”const DAEMON_ERROR_CODES = [ 'PROCESS_NOT_FOUND', 'PROCESS_START_FAILED', 'PROCESS_TERMINAL', 'PROCESS_EXECUTION_TIMEOUT', 'NAME_CONFLICT', 'INVALID_CURSOR', 'CURSOR_EXPIRED', 'STDIN_CLOSED', 'STDIN_UNAVAILABLE', 'PROTECTED_PROCESS', 'UNSUPPORTED_OPERATION', 'SESSION_NOT_FOUND', 'SESSION_ENDED', 'KERNEL_UNAVAILABLE', 'LSP_SERVER_UNAVAILABLE', 'LSP_NOT_STARTED', 'ADDON_UNAVAILABLE', 'FILE_NOT_FOUND', 'INVALID_FILE_PATH', 'FILE_ACCESS_DENIED', 'FILE_READ_FAILED', 'ATOMIC_UPLOAD_UNSUPPORTED', 'GIT_AUTH_FAILED', 'GIT_REPO_NOT_FOUND', 'GIT_BRANCH_NOT_FOUND', 'GIT_BRANCH_EXISTS', 'DESKTOP_NOT_READY', 'FS_FREEZE_UNSUPPORTED', 'NO_DEFAULT_GATEWAY',] as constGENERIC_ERROR_CODES
Section titled “GENERIC_ERROR_CODES”const GENERIC_ERROR_CODES = [ 'BAD_GATEWAY', 'BAD_REQUEST', 'CONFLICT', 'FORBIDDEN', 'GATEWAY_TIMEOUT', 'GONE', 'INTERNAL_SERVER_ERROR', 'METHOD_NOT_ALLOWED', 'NOT_FOUND', 'NOT_IMPLEMENTED', 'PAYMENT_REQUIRED', 'PAYLOAD_TOO_LARGE', 'REQUEST_TIMEOUT', 'SERVICE_UNAVAILABLE', 'TOO_MANY_REQUESTS', 'UNAUTHORIZED', 'UNPROCESSABLE_ENTITY', 'UNSUPPORTED_MEDIA_TYPE',] as constPROXY_ERROR_CODES
Section titled “PROXY_ERROR_CODES”const PROXY_ERROR_CODES = [ 'SANDBOX_WAKING', 'SANDBOX_NOT_RUNNING', 'SANDBOX_START_FAILED',] as constROUTER_ERROR_CODES
Section titled “ROUTER_ERROR_CODES”const ROUTER_ERROR_CODES = [ 'REGION_MISMATCH', 'UNKNOWN_REGION', 'REGION_REQUIRED', 'RETIRED_REGION_SELECTOR', 'IDEMPOTENCY_KEY_REQUIRED', 'CREATE_BODY_TOO_LARGE', 'PLACEMENT_UNAVAILABLE',] as constCODE_STATUS
Section titled “CODE_STATUS”const CODE_STATUS: Record<ErrorCode, number> = { PROCESS_NOT_FOUND: 404, PROCESS_START_FAILED: 400, PROCESS_TERMINAL: 409, PROCESS_EXECUTION_TIMEOUT: 408, NAME_CONFLICT: 409, INVALID_CURSOR: 400, CURSOR_EXPIRED: 409, STDIN_CLOSED: 409, STDIN_UNAVAILABLE: 409, PROTECTED_PROCESS: 403, UNSUPPORTED_OPERATION: 400, SESSION_NOT_FOUND: 404, SESSION_ENDED: 410, KERNEL_UNAVAILABLE: 503, LSP_SERVER_UNAVAILABLE: 503, LSP_NOT_STARTED: 409, ADDON_UNAVAILABLE: 503, FILE_NOT_FOUND: 404, INVALID_FILE_PATH: 400, FILE_ACCESS_DENIED: 403, FILE_READ_FAILED: 500, ATOMIC_UPLOAD_UNSUPPORTED: 409, GIT_AUTH_FAILED: 401, GIT_REPO_NOT_FOUND: 404, GIT_BRANCH_NOT_FOUND: 404, GIT_BRANCH_EXISTS: 409, DESKTOP_NOT_READY: 409, FS_FREEZE_UNSUPPORTED: 409, NO_DEFAULT_GATEWAY: 503, BILLING_DISABLED: 501, BILLING_UNREACHABLE: 502, BILLING_UNAVAILABLE: 503, BILLING_NOT_PROVISIONED: 409, CHARGE_NOT_FOUND: 404, INVOICE_NOT_FOUND: 404, COUPON_NOT_FOUND: 404, COUPON_EXPIRED: 409, COUPON_LIMIT_REACHED: 409, COUPON_ALREADY_REDEEMED: 409, INVOICE_NOT_FINALIZED: 409, INVOICE_NOT_PAYABLE: 409, CHARGE_NOT_SUCCEEDED: 409, PLAN_UNCHANGED: 409, PLAN_CHANGE_PENDING: 409, PLAN_MANAGED_BY_OPERATOR: 409, PAYMENT_METHOD_REQUIRED: 409, BILLING_ACCOUNT_CONFLICT: 409, UNKNOWN_PLAN: 400, PLAN_REQUIRES_SALES: 400, AUTOMATIC_TOP_UP_NOT_AVAILABLE: 409, BUCKET_CREATE_FAILED: 502, BUCKET_DELETE_FAILED: 502, BUCKET_NOT_EMPTY: 409, CREATE_BODY_TOO_LARGE: 413, CREATE_OPERATION_RETIRED: 410, CROSS_CELL_PLACEMENT_UNSUPPORTED: 409, ECR_ACCOUNT_MISMATCH: 400, ECR_CREDENTIALS_INVALID: 400, ECR_OWNERSHIP_UNVERIFIABLE: 502, EMAIL_ACCESS_DENIED: 403, ENTITLEMENT_REQUIRED: 403, FEATURE_NOT_ENABLED: 403, HARDWARE_REPLY_TOO_LARGE: 503, INSTANCE_CREATE_FAILED: 503, INSTANCE_UNREACHABLE: 502, INVALID_FOR_SOURCE: 400, INVOCATION_TIMEOUT: 504, LIMIT_EXCEEDED: 429, IDENTITY_NOT_FOUND: 404, WORKOS_SYNC_DISABLED: 402, USAGE_UNAVAILABLE: 503, BAD_RANGE: 400, BAD_RESOLUTION: 400, BAD_RUNNER: 400, BILLING_FORBIDDEN: 502, BILLING_ERROR: 502, BUILD_LOG_BATCH_TOO_LARGE: 413, IF_MATCH_REQUIRED: 428, MANAGEMENT_PLANE_ELSEWHERE: 501, NETWORK_POLICY_DOMAINS_REQUIRE_BLOCK_ALL: 400, NETWORK_POLICY_TRANSITION_IN_PROGRESS: 409, STALE_NETWORK_POLICY_REVISION: 412, NOT_SUPPORTED_FOR_CLASS: 409, IMAGE_NOT_FOUND: 404, IMAGE_NOT_READY: 409, IMAGE_BUILD_FAILED: 409, DEFAULT_IMAGE_NOT_CONFIGURED: 400, IMAGE_FORMAT_OUTDATED: 409, IMAGE_CLASS_MISMATCH: 409, IMAGE_NAME_TAKEN: 409, IMAGE_NAME_RESERVED: 400, IDLE_OUT_OF_RANGE: 400, CREATE_TTL_OUT_OF_RANGE: 400, SNAPSHOT_NOT_FOUND: 404, SNAPSHOT_NOT_READY: 409, SNAPSHOT_CLASS_MISMATCH: 409, SNAPSHOT_IN_PROGRESS: 409, IMPORTED_KEY_ALWAYS_SYNCED: 409, KEY_SYNC_NOT_APPLICABLE: 409, ORG_SUSPENDED: 402, ORIGIN_IMPORT_ONLY: 400, OVERLOADED: 429, PLACEMENT_UNAVAILABLE: 503, PROJECT_BUDGET_EXCEEDED: 402, RATE_LIMITED: 429, READ_ONLY_UNSUPPORTED: 400, SEARCH_NOT_CONFIGURED: 501, SEARCH_UNAVAILABLE: 503, SIGNUP_NOT_INVITED: 403, OPERATOR_IDENTITY_REQUIRED: 403, SOURCE_AMBIGUOUS: 409, SECRET_ALREADY_EXISTS: 412, UNSUPPORTED_VOLUME_TYPE: 400, WORKLOAD_PLANE_ELSEWHERE: 501, NO_ACTIVE_RESERVATION: 409, NO_FREE_SLOT: 409, RESERVATION_NOT_FOUND: 404, NO_MAC_AVAILABLE: 409, MAC_DISK_FULL: 409, AUTO_RESERVE_LIMIT_REACHED: 409, IDEMPOTENCY_KEY_REUSED: 409, INSUFFICIENT_BALANCE: 402, CHARGE_FAILED: 402, CHECKPOINT_PENDING: 409, NO_CHECKPOINT: 409, CHECKPOINT_FAILED: 409, V1_BRIDGE_UNAVAILABLE: 503, V1_SANDBOX_NOT_FOUND: 404, V1_SANDBOX_NOT_IMPORTABLE: 409, V1_BACKUP_REGISTRY_UNCONFIGURED: 503, V1_MIGRATION_DEFAULT_PROJECT_ONLY: 403, SANDBOX_WAKING: 503, SANDBOX_NOT_RUNNING: 409, SANDBOX_START_FAILED: 409, REGION_MISMATCH: 400, UNKNOWN_REGION: 400, REGION_REQUIRED: 400, RETIRED_REGION_SELECTOR: 400, IDEMPOTENCY_KEY_REQUIRED: 400, BAD_GATEWAY: 502, BAD_REQUEST: 400, CONFLICT: 409, FORBIDDEN: 403, GATEWAY_TIMEOUT: 504, GONE: 410, INTERNAL_SERVER_ERROR: 500, METHOD_NOT_ALLOWED: 405, NOT_FOUND: 404, NOT_IMPLEMENTED: 501, PAYMENT_REQUIRED: 402, PAYLOAD_TOO_LARGE: 413, REQUEST_TIMEOUT: 408, SERVICE_UNAVAILABLE: 503, TOO_MANY_REQUESTS: 429, UNAUTHORIZED: 401, UNPROCESSABLE_ENTITY: 422, UNSUPPORTED_MEDIA_TYPE: 415,}API_CODE_EXTRAS
Section titled “API_CODE_EXTRAS”const API_CODE_EXTRAS: Partial<Record<ErrorCode, readonly string[]>> = { ENTITLEMENT_REQUIRED: ['entitlement'], FEATURE_NOT_ENABLED: ['feature'], GONE: ['replacement'], LIMIT_EXCEEDED: ['limit', 'current', 'max'], IDLE_OUT_OF_RANGE: ['max'], CREATE_TTL_OUT_OF_RANGE: ['max'], OVERLOADED: ['retry_after_seconds'], RATE_LIMITED: ['retry_after_seconds'],}The optional top-level envelope fields a code may carry beyond
{code, message, source, trace_id} — the per-code extras arrays the
contract artifacts publish. Extras are documented per SOURCE (the api’s
GONE carries replacement; the daemon’s carries nothing), so there is
one map per source; an unlisted code carries none.
DAEMON_CODE_EXTRAS
Section titled “DAEMON_CODE_EXTRAS”const DAEMON_CODE_EXTRAS: Partial<Record<ErrorCode, readonly string[]>> = { CURSOR_EXPIRED: ['firstAvailableCursor'],}PROXY_CODE_EXTRAS
Section titled “PROXY_CODE_EXTRAS”const PROXY_CODE_EXTRAS: Partial<Record<ErrorCode, readonly string[]>> = {}ROUTER_CODE_EXTRAS
Section titled “ROUTER_CODE_EXTRAS”const ROUTER_CODE_EXTRAS: Partial<Record<ErrorCode, readonly string[]>> = { REGION_MISMATCH: ['stated', 'actual'], UNKNOWN_REGION: ['region'],}DaytonaNotFoundError
Section titled “DaytonaNotFoundError”const DaytonaNotFoundError = NotFoundErrorDaytonaAuthenticationError
Section titled “DaytonaAuthenticationError”const DaytonaAuthenticationError = AuthenticationErrorDaytonaAuthorizationError
Section titled “DaytonaAuthorizationError”const DaytonaAuthorizationError = AuthorizationErrorDaytonaConflictError
Section titled “DaytonaConflictError”const DaytonaConflictError = ConflictErrorDaytonaValidationError
Section titled “DaytonaValidationError”const DaytonaValidationError = BadRequestErrorDaytonaRateLimitError
Section titled “DaytonaRateLimitError”const DaytonaRateLimitError = RateLimitErrorDaytonaTimeoutError
Section titled “DaytonaTimeoutError”const DaytonaTimeoutError = TimeoutErrorDaytonaConnectionError
Section titled “DaytonaConnectionError”const DaytonaConnectionError = ConnectionErrorDaytonaNotSupportedError
Section titled “DaytonaNotSupportedError”const DaytonaNotSupportedError = NotSupportedError