Skip to content
View as Markdown

The accessibility service is unavailable (code A11Y_UNAVAILABLE).

Properties:

  • code? string
    • Inherited from: DaytonaServiceUnavailableError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaServiceUnavailableError.headers
  • source? string
    • Inherited from: DaytonaServiceUnavailableError.source
  • statusCode? number
    • Inherited from: DaytonaServiceUnavailableError.statusCode

Extends:

  • DaytonaServiceUnavailableError

Inherited from: DaytonaServiceUnavailableError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaA11yUnavailableError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaA11yUnavailableError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaA11yUnavailableError

DaytonaServiceUnavailableError.constructor

Authentication failed — missing or invalid credentials (HTTP 401).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaGitAuthFailedError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaAuthenticationError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaAuthenticationError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaAuthenticationError

DaytonaError.constructor

Properties:

  • code? string
    • Inherited from: DaytonaForbiddenError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaForbiddenError.headers
  • source? string
    • Inherited from: DaytonaForbiddenError.source
  • statusCode? number
    • Inherited from: DaytonaForbiddenError.statusCode

Use DaytonaForbiddenError instead.

Extends:

  • DaytonaForbiddenError

Inherited from: DaytonaForbiddenError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaAuthorizationError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaAuthorizationError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaAuthorizationError

DaytonaForbiddenError.constructor

An upstream gateway returned an invalid response (HTTP 502).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaGitTransportFailedError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaBadGatewayError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaBadGatewayError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaBadGatewayError

DaytonaError.constructor

The request was malformed or invalid (HTTP 400).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaValidationError
  • DaytonaInvalidFilePathError
  • DaytonaLspServerNotInitializedError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaBadRequestError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaBadRequestError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaBadRequestError

DaytonaError.constructor

The session command already finished (code COMMAND_ALREADY_COMPLETED).

Properties:

  • code? string
    • Inherited from: DaytonaGoneError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaGoneError.headers
  • source? string
    • Inherited from: DaytonaGoneError.source
  • statusCode? number
    • Inherited from: DaytonaGoneError.statusCode

Extends:

  • DaytonaGoneError

Inherited from: DaytonaGoneError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaCommandAlreadyCompletedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaCommandAlreadyCompletedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaCommandAlreadyCompletedError

DaytonaGoneError.constructor

The request conflicts with the current state of the resource (HTTP 409).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaGitBranchExistsError
  • DaytonaGitPushRejectedError
  • DaytonaGitDirtyWorktreeError
  • DaytonaGitMergeConflictError
  • DaytonaRecordingStillActiveError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaConflictError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaConflictError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaConflictError

DaytonaError.constructor

Network connection failure (can’t connect or mid-request drop).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaConnectionTimeoutError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaConnectionError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaConnectionError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaConnectionError

DaytonaError.constructor

Transport-layer timeout (connect / read). Subclass of DaytonaConnectionError.

Properties:

  • code? string
    • Inherited from: DaytonaConnectionError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConnectionError.headers
  • source? string
    • Inherited from: DaytonaConnectionError.source
  • statusCode? number
    • Inherited from: DaytonaConnectionError.statusCode

Extends:

  • DaytonaConnectionError

Inherited from: DaytonaConnectionError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaConnectionTimeoutError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaConnectionTimeoutError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaConnectionTimeoutError

DaytonaConnectionError.constructor

Base error for Daytona SDK. statusCode and code are populated only for errors translated from a server response. source is undefined unless the caller (or the translation layer) sets it.

Properties:

  • code? string
  • headers? AxiosHeaders
  • source? string
  • statusCode? number

Extends:

  • Error
  • DaytonaBadRequestError
  • DaytonaAuthenticationError
  • DaytonaForbiddenError
  • DaytonaNotFoundError
  • DaytonaTimeoutError
  • DaytonaConflictError
  • DaytonaGoneError
  • DaytonaUnprocessableEntityError
  • DaytonaRateLimitError
  • DaytonaInternalServerError
  • DaytonaBadGatewayError
  • DaytonaServiceUnavailableError
  • DaytonaConnectionError
get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaError
Error.constructor

Access to the sandbox file was denied (code FILE_ACCESS_DENIED).

Properties:

  • code? string
    • Inherited from: DaytonaForbiddenError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaForbiddenError.headers
  • source? string
    • Inherited from: DaytonaForbiddenError.source
  • statusCode? number
    • Inherited from: DaytonaForbiddenError.statusCode

Extends:

  • DaytonaForbiddenError

Inherited from: DaytonaForbiddenError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaFileAccessDeniedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaFileAccessDeniedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaFileAccessDeniedError

DaytonaForbiddenError.constructor

The file does not exist in the sandbox (code FILE_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Inherited from: DaytonaNotFoundError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaFileNotFoundError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaFileNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaFileNotFoundError

DaytonaNotFoundError.constructor

The daemon could not read the sandbox file (code FILE_READ_FAILED).

Properties:

  • code? string
    • Inherited from: DaytonaInternalServerError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaInternalServerError.headers
  • source? string
    • Inherited from: DaytonaInternalServerError.source
  • statusCode? number
    • Inherited from: DaytonaInternalServerError.statusCode

Extends:

  • DaytonaInternalServerError

Inherited from: DaytonaInternalServerError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaFileReadFailedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaFileReadFailedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaFileReadFailedError

DaytonaInternalServerError.constructor

The authenticated caller lacks permission for the operation (HTTP 403).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaAuthorizationError
  • DaytonaFileAccessDeniedError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaForbiddenError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaForbiddenError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaForbiddenError

DaytonaError.constructor

Git authentication against the remote failed (code GIT_AUTH_FAILED).

Properties:

  • code? string
    • Inherited from: DaytonaAuthenticationError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaAuthenticationError.headers
  • source? string
    • Inherited from: DaytonaAuthenticationError.source
  • statusCode? number
    • Inherited from: DaytonaAuthenticationError.statusCode

Extends:

  • DaytonaAuthenticationError

Inherited from: DaytonaAuthenticationError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitAuthFailedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitAuthFailedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitAuthFailedError

DaytonaAuthenticationError.constructor

The git branch already exists (code GIT_BRANCH_EXISTS).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Inherited from: DaytonaConflictError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitBranchExistsError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitBranchExistsError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitBranchExistsError

DaytonaConflictError.constructor

The git branch does not exist (code GIT_BRANCH_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Inherited from: DaytonaNotFoundError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitBranchNotFoundError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitBranchNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitBranchNotFoundError

DaytonaNotFoundError.constructor

The operation requires a clean worktree (code GIT_DIRTY_WORKTREE).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Inherited from: DaytonaConflictError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitDirtyWorktreeError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitDirtyWorktreeError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitDirtyWorktreeError

DaytonaConflictError.constructor

A git merge produced conflicts (code GIT_MERGE_CONFLICT).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Inherited from: DaytonaConflictError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitMergeConflictError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitMergeConflictError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitMergeConflictError

DaytonaConflictError.constructor

The git push was rejected by the remote (code GIT_PUSH_REJECTED).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Inherited from: DaytonaConflictError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitPushRejectedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitPushRejectedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitPushRejectedError

DaytonaConflictError.constructor

The git remote rejected the operation — hooks, branch protection or quota (code GIT_REMOTE_REJECTED).

Properties:

  • code? string
    • Inherited from: DaytonaUnprocessableEntityError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaUnprocessableEntityError.headers
  • source? string
    • Inherited from: DaytonaUnprocessableEntityError.source
  • statusCode? number
    • Inherited from: DaytonaUnprocessableEntityError.statusCode

Extends:

  • DaytonaUnprocessableEntityError

Inherited from: DaytonaUnprocessableEntityError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitRemoteRejectedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitRemoteRejectedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitRemoteRejectedError

DaytonaUnprocessableEntityError.constructor

The git remote repository was not found (code GIT_REPO_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Inherited from: DaytonaNotFoundError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitRepoNotFoundError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitRepoNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitRepoNotFoundError

DaytonaNotFoundError.constructor

The git remote was unreachable — DNS, TLS, connection or timeout failure (code GIT_TRANSPORT_FAILED).

Properties:

  • code? string
    • Inherited from: DaytonaBadGatewayError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadGatewayError.headers
  • source? string
    • Inherited from: DaytonaBadGatewayError.source
  • statusCode? number
    • Inherited from: DaytonaBadGatewayError.statusCode

Extends:

  • DaytonaBadGatewayError

Inherited from: DaytonaBadGatewayError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGitTransportFailedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGitTransportFailedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGitTransportFailedError

DaytonaBadGatewayError.constructor

The resource existed but is permanently gone (HTTP 410).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaSessionEndedError
  • DaytonaCommandAlreadyCompletedError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaGoneError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaGoneError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaGoneError

DaytonaError.constructor

A Daytona service failed unexpectedly (HTTP 500).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaFileReadFailedError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaInternalServerError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaInternalServerError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaInternalServerError

DaytonaError.constructor

The SDK rejected the caller’s arguments locally, before any request was sent. statusCode, code and source are always undefined — no Daytona service was contacted, so there is no HTTP status to report.

Properties:

  • code? string
    • Inherited from: DaytonaValidationError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaValidationError.headers
  • source? string
    • Inherited from: DaytonaValidationError.source
  • statusCode? number
    • Inherited from: DaytonaValidationError.statusCode

Distinct from DaytonaBadRequestError (a service returned HTTP 400) and DaytonaUnprocessableEntityError (a service returned HTTP 422). This one always means: fix the arguments at the call site.

Example:

try {
await sandbox.setAutoStopInterval(-1)
} catch (err) {
if (err instanceof DaytonaInvalidArgumentError) {
// never reached the API — the value itself is invalid
}
}

Extends:

  • DaytonaValidationError

Inherited from: DaytonaValidationError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaInvalidArgumentError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaInvalidArgumentError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaInvalidArgumentError

DaytonaValidationError.constructor

The supplied file path was rejected by the daemon (code INVALID_FILE_PATH).

Properties:

  • code? string
    • Inherited from: DaytonaBadRequestError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadRequestError.headers
  • source? string
    • Inherited from: DaytonaBadRequestError.source
  • statusCode? number
    • Inherited from: DaytonaBadRequestError.statusCode

Extends:

  • DaytonaBadRequestError

Inherited from: DaytonaBadRequestError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaInvalidFilePathError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaInvalidFilePathError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaInvalidFilePathError

DaytonaBadRequestError.constructor

The LSP server must be initialized first (code LSP_SERVER_NOT_INITIALIZED).

Properties:

  • code? string
    • Inherited from: DaytonaBadRequestError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadRequestError.headers
  • source? string
    • Inherited from: DaytonaBadRequestError.source
  • statusCode? number
    • Inherited from: DaytonaBadRequestError.statusCode

Extends:

  • DaytonaBadRequestError

Inherited from: DaytonaBadRequestError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaLspServerNotInitializedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaLspServerNotInitializedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaLspServerNotInitializedError

DaytonaBadRequestError.constructor

The requested resource does not exist (HTTP 404).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaGitRepoNotFoundError
  • DaytonaGitBranchNotFoundError
  • DaytonaFileNotFoundError
  • DaytonaProcessNotFoundError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaNotFoundError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaNotFoundError

DaytonaError.constructor

Command execution exceeded its timeout (code PROCESS_EXECUTION_TIMEOUT).

Properties:

  • code? string
    • Inherited from: DaytonaTimeoutError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaTimeoutError.headers
  • source? string
    • Inherited from: DaytonaTimeoutError.source
  • statusCode? number
    • Inherited from: DaytonaTimeoutError.statusCode

Extends:

  • DaytonaTimeoutError

Inherited from: DaytonaTimeoutError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaProcessExecutionTimeoutError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaProcessExecutionTimeoutError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaProcessExecutionTimeoutError

DaytonaTimeoutError.constructor

static hasInstance: boolean;

Parameters:

  • value unknown

Returns:

  • boolean

DaytonaTimeoutError.[hasInstance]

The sandbox process does not exist (code PROCESS_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaNotFoundError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaNotFoundError.headers
  • source? string
    • Inherited from: DaytonaNotFoundError.source
  • statusCode? number
    • Inherited from: DaytonaNotFoundError.statusCode

Extends:

  • DaytonaNotFoundError

Inherited from: DaytonaNotFoundError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaProcessNotFoundError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaProcessNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaProcessNotFoundError

DaytonaNotFoundError.constructor

The caller exceeded a rate limit (HTTP 429).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaRateLimitError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaRateLimitError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaRateLimitError

DaytonaError.constructor

ffmpeg is not available for recording (code RECORDING_FFMPEG_NOT_FOUND).

Properties:

  • code? string
    • Inherited from: DaytonaServiceUnavailableError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaServiceUnavailableError.headers
  • source? string
    • Inherited from: DaytonaServiceUnavailableError.source
  • statusCode? number
    • Inherited from: DaytonaServiceUnavailableError.statusCode

Extends:

  • DaytonaServiceUnavailableError

Inherited from: DaytonaServiceUnavailableError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaRecordingFfmpegNotFoundError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaRecordingFfmpegNotFoundError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaRecordingFfmpegNotFoundError

DaytonaServiceUnavailableError.constructor

A screen recording is still active (code RECORDING_STILL_ACTIVE).

Properties:

  • code? string
    • Inherited from: DaytonaConflictError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaConflictError.headers
  • source? string
    • Inherited from: DaytonaConflictError.source
  • statusCode? number
    • Inherited from: DaytonaConflictError.statusCode

Extends:

  • DaytonaConflictError

Inherited from: DaytonaConflictError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaRecordingStillActiveError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaRecordingStillActiveError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaRecordingStillActiveError

DaytonaConflictError.constructor

The service is temporarily unable to handle the request (HTTP 503).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaA11yUnavailableError
  • DaytonaRecordingFfmpegNotFoundError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaServiceUnavailableError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaServiceUnavailableError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaServiceUnavailableError

DaytonaError.constructor

The session has already ended (code SESSION_ENDED).

Properties:

  • code? string
    • Inherited from: DaytonaGoneError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaGoneError.headers
  • source? string
    • Inherited from: DaytonaGoneError.source
  • statusCode? number
    • Inherited from: DaytonaGoneError.statusCode

Extends:

  • DaytonaGoneError

Inherited from: DaytonaGoneError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaSessionEndedError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaSessionEndedError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaSessionEndedError

DaytonaGoneError.constructor

The operation timed out (HTTP 408, or 504 when a gateway timed out).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Also matches DaytonaConnectionTimeoutError via instanceof, even though that class sits under DaytonaConnectionError in the prototype chain. Transport timeouts were raised as DaytonaTimeoutError before DaytonaConnectionTimeoutError existed, so this keeps pre-existing catch (err) { if (err instanceof DaytonaTimeoutError) ... } blocks working — the same compatibility the Python SDK gets from inheriting both classes.

Extends:

  • DaytonaError
  • DaytonaProcessExecutionTimeoutError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaTimeoutError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaTimeoutError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaTimeoutError

DaytonaError.constructor

static hasInstance: boolean;

Parameters:

  • value unknown

Returns:

  • boolean

The request was well-formed but semantically invalid (HTTP 422).

Properties:

  • code? string
    • Inherited from: DaytonaError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaError.headers
  • source? string
    • Inherited from: DaytonaError.source
  • statusCode? number
    • Inherited from: DaytonaError.statusCode

Extends:

  • DaytonaError
  • DaytonaGitRemoteRejectedError

Inherited from: DaytonaError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaUnprocessableEntityError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaUnprocessableEntityError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaUnprocessableEntityError

DaytonaError.constructor

Legacy umbrella for validation failures. Kept so existing catch (err) { if (err instanceof DaytonaValidationError) ... } blocks keep matching both server-returned HTTP 400s and locally rejected arguments.

Properties:

  • code? string
    • Inherited from: DaytonaBadRequestError.code
  • headers? AxiosHeaders
    • Inherited from: DaytonaBadRequestError.headers
  • source? string
    • Inherited from: DaytonaBadRequestError.source
  • statusCode? number
    • Inherited from: DaytonaBadRequestError.statusCode

Do not throw or catch this directly in new code. Branch on the precise class instead:

  • DaytonaInvalidArgumentError — the SDK rejected your arguments locally, before any request was sent.
  • DaytonaBadRequestError — a Daytona service returned HTTP 400.
  • DaytonaUnprocessableEntityError — a Daytona service returned HTTP 422 (well-formed but semantically invalid).

Extends:

  • DaytonaBadRequestError
  • DaytonaInvalidArgumentError

Inherited from: DaytonaBadRequestError.errorCode

get errorCode(): string;

Use DaytonaError.code instead. Kept so existing err.errorCode reads keep returning the machine-readable code.

Returns:

  • string - the machine-readable error code, or undefined when the response did not carry one (same as DaytonaError.code)
new DaytonaValidationError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaValidationError;

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaValidationError

DaytonaBadRequestError.constructor

function createAxiosDaytonaError(error: AxiosError): DaytonaError;

Creates the appropriate Daytona error subclass from an Axios error. Maps client-side timeouts to DaytonaConnectionTimeoutError, networking failures (no response received) to DaytonaConnectionError, and HTTP responses to the most specific subclass via createDaytonaError.

Parameters:

  • error AxiosError

Returns:

  • DaytonaError

function createDaytonaError(
message: string,
statusCode?: number,
headers?: AxiosHeaders,
code?: string,
source?: string): DaytonaError;

Creates the appropriate Daytona error subclass from structured error metadata.

Resolution order: (source, code) override -> HTTP status code -> DaytonaError.

Parameters:

  • message string
  • statusCode? number
  • headers? AxiosHeaders
  • code? string
  • source? string

Returns:

  • DaytonaError

function errorClassFromStatusCode(statusCode?: number): typeof DaytonaError;

Maps an HTTP status code to the corresponding Daytona error class.

Parameters:

  • statusCode? number

typeof DaytonaError


type ResponseHeaders = InstanceType<typeof AxiosHeaders>;

const SOURCE_API: "DAYTONA_API" = 'DAYTONA_API';

Wire-format source identifiers set by the translation layer when a Daytona service stamps them on the wire envelope. source = undefined means the response did not carry a structured envelope (treat as opaque).


const SOURCE_DAEMON: "DAYTONA_DAEMON" = 'DAYTONA_DAEMON';

const SOURCE_PROXY: "DAYTONA_PROXY" = 'DAYTONA_PROXY';