# Class: HostError

Defined in: [packages/core/src/session/hosting.ts:585](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L585)

Why a host said no: its status code, and what it said. Status 0 when it gave no answer at all.

## Extends

- `Error`

## Constructors

### Constructor

```ts
new HostError(status, message): HostError;
```

Defined in: [packages/core/src/session/hosting.ts:587](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L587)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `status` | `number` |
| `message` | `string` |

#### Returns

`HostError`

#### Overrides

`Error.constructor`

## Properties

### cause?

```ts
cause?: unknown;
```

Defined in: [apps/docs/node\_modules/typescript/lib/lib.es2022.error.d.ts:24](https://github.com/leifriksheim/minca/blob/main/../apps/docs/node_modules/typescript/lib/lib.es2022.error.d.ts#L24)

#### Inherited from

`Error.cause`

***

### message

```ts
message: string;
```

Defined in: [apps/docs/node\_modules/typescript/lib/lib.es5.d.ts:1075](https://github.com/leifriksheim/minca/blob/main/../apps/docs/node_modules/typescript/lib/lib.es5.d.ts#L1075)

#### Inherited from

`Error.message`

***

### name

```ts
name: string;
```

Defined in: [apps/docs/node\_modules/typescript/lib/lib.es5.d.ts:1074](https://github.com/leifriksheim/minca/blob/main/../apps/docs/node_modules/typescript/lib/lib.es5.d.ts#L1074)

#### Inherited from

`Error.name`

***

### stack?

```ts
stack?: string;
```

Defined in: [apps/docs/node\_modules/typescript/lib/lib.es5.d.ts:1076](https://github.com/leifriksheim/minca/blob/main/../apps/docs/node_modules/typescript/lib/lib.es5.d.ts#L1076)

#### Inherited from

`Error.stack`

***

### status

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

Defined in: [packages/core/src/session/hosting.ts:586](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L586)
