# XhrUploadError (@salmonui/inputs/file-upload/xhr)

> The XhrUploadError class of @salmonui/inputs/file-upload/xhr: Rejection of a non-2xx response, or of a network failure (status 0).

Canonical: https://salmonui.dev/docs/reference/inputs/file-upload-xhr/XhrUploadError

```ts
import { XhrUploadError } from '@salmonui/inputs/file-upload/xhr';
```

Entry index: https://salmonui.dev/docs/reference/inputs/file-upload-xhr (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/file-upload-xhr.md).

## Reference

Kind: class

```ts
class XhrUploadError extends Error {
    readonly status: number;
    readonly body: string;
    constructor(status: number, body: string);
}
```

Rejection of a non-2xx response, or of a network failure (`status` 0).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `status` | `readonly status: number;` |  |  |
| `body` | `readonly body: string;` |  |  |
