# HttpError (@salmonui/data/json)

> The HttpError class of @salmonui/data/json: Non-2xx HTTP response. 4xx are not retried by default.

Canonical: https://salmonui.dev/docs/reference/data/json/HttpError

```ts
import { HttpError } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/json (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/json.md).

## Reference

Kind: class

```ts
class HttpError extends Error {
    readonly name = "HttpError";
    readonly status: number;
    readonly body: string;
    constructor(status: number, statusText: string, body: string);
}
```

Non-2xx HTTP response. 4xx are not retried by default.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name = "HttpError";` |  |  |
| `status` | `readonly status: number;` |  |  |
| `body` | `readonly body: string;` |  |  |
