# UncageClientError

<!-- https://uncage.vercel.app/docs/api/client/classes/uncageclienterror/ -->

Defined in: client/src/errors.ts:17

## Extends

- `Error`

## Constructors

### Constructor

```ts
new UncageClientError(body, status): UncageClientError;
```

Defined in: client/src/errors.ts:24

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `body` | `Pick`\<[`ErrorBody`](https://uncage.vercel.app/docs/api/client/type-aliases/errorbody.md), `"code"` \| `"message"` \| `"retryable"` \| `"hint"` \| `"details"`\> |
| `status` | `number` |

#### Returns

`UncageClientError`

#### Overrides

`Error.constructor`

## Properties

### code

```ts
readonly code: 
  | "auth_required"
  | "runtime_unavailable"
  | "unsupported_capability"
  | "invalid_workspace"
  | "session_busy"
  | "session_read_only"
  | "not_found"
  | "unauthorized"
  | "forbidden_origin"
  | "invalid_request"
  | "approval_expired"
  | "approval_already_resolved"
  | "event_replay_unavailable"
  | "runtime_disconnected"
  | "policy_denied"
  | "store_locked"
  | "attachment_too_large"
  | "attachment_type_unsupported"
  | "machine_offline"
  | "machine_not_found"
  | "upgrade_required"
  | "tool_failed"
  | "device_code_expired"
  | "rate_limited"
  | "internal_error";
```

Defined in: client/src/errors.ts:18

***

### details?

```ts
readonly details?: Record<string, unknown>;
```

Defined in: client/src/errors.ts:22

***

### hint?

```ts
readonly hint?: string;
```

Defined in: client/src/errors.ts:19

***

### retryable

```ts
readonly retryable: boolean;
```

Defined in: client/src/errors.ts:21

***

### status

```ts
readonly status: number;
```

Defined in: client/src/errors.ts:20
