# @types/standard-http-error

> TypeScript definitions for standard-http-error

Latest version **2.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/standard-http-error
pnpm add @types/standard-http-error
yarn add @types/standard-http-error
bun add @types/standard-http-error
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2023-11-07 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/standard-http-error
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/standard-http-error
- npm.io page: https://npm.io/package/@types/standard-http-error

## Dependencies (1)

- [@types/standard-error](https://npm.io/package/@types/standard-error.md) *

## Recent versions

- 2.0.4 (latest) — 2023-11-07
- 2.0.1 (ts3.4) — 2021-03-03
- 2.0.0 (ts2.0) — 2018-09-27
- 2.0.3 — 2023-10-18
- 2.0.2 — 2023-09-25

## README

# Installation
> `npm install --save @types/standard-http-error`

# Summary
This package contains type definitions for standard-http-error (https://github.com/moll/js-standard-http-error).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/standard-http-error.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/standard-http-error/index.d.ts)
````ts
// TypeScript Version: 2.2

import StandardError = require("standard-error");

export = HttpError;

declare class HttpError extends StandardError {
    static CONTINUE: 100;
    static SWITCHING_PROTOCOLS: 101;
    static PROCESSING: 102;
    static OK: 200;
    static CREATED: 201;
    static ACCEPTED: 202;
    static NON_AUTHORITATIVE_INFORMATION: 203;
    static NO_CONTENT: 204;
    static RESET_CONTENT: 205;
    static PARTIAL_CONTENT: 206;
    static MULTI_STATUS: 207;
    static ALREADY_REPORTED: 208;
    static IM_USED: 226;
    static MULTIPLE_CHOICES: 300;
    static MOVED_PERMANENTLY: 301;
    static FOUND: 302;
    static SEE_OTHER: 303;
    static NOT_MODIFIED: 304;
    static USE_PROXY: 305;
    static TEMPORARY_REDIRECT: 307;
    static PERMANENT_REDIRECT: 308;
    static BAD_REQUEST: 400;
    static UNAUTHORIZED: 401;
    static PAYMENT_REQUIRED: 402;
    static FORBIDDEN: 403;
    static NOT_FOUND: 404;
    static METHOD_NOT_ALLOWED: 405;
    static NOT_ACCEPTABLE: 406;
    static PROXY_AUTHENTICATION_REQUIRED: 407;
    static REQUEST_TIMEOUT: 408;
    static CONFLICT: 409;
    static GONE: 410;
    static LENGTH_REQUIRED: 411;
    static PRECONDITION_FAILED: 412;
    static PAYLOAD_TOO_LARGE: 413;
    static URI_TOO_LONG: 414;
    static UNSUPPORTED_MEDIA_TYPE: 415;
    static RANGE_NOT_SATISFIABLE: 416;
    static EXPECTATION_FAILED: 417;
    static IM_A_TEAPOT: 418;
    static MISDIRECTED_REQUEST: 421;
    static UNPROCESSABLE_ENTITY: 422;
    static LOCKED: 423;
    static FAILED_DEPENDENCY: 424;
    static UNORDERED_COLLECTION: 425;
    static UPGRADE_REQUIRED: 426;
    static PRECONDITION_REQUIRED: 428;
    static TOO_MANY_REQUESTS: 429;
    static REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
    static INTERNAL_SERVER_ERROR: 500;
    static NOT_IMPLEMENTED: 501;
    static BAD_GATEWAY: 502;
    static SERVICE_UNAVAILABLE: 503;
    static GATEWAY_TIMEOUT: 504;
    static HTTP_VERSION_NOT_SUPPORTED: 505;
    static VARIANT_ALSO_NEGOTIATES: 506;
    static INSUFFICIENT_STORAGE: 507;
    static LOOP_DETECTED: 508;
    static BANDWIDTH_LIMIT_EXCEEDED: 509;
    static NOT_EXTENDED: 510;
    static NETWORK_AUTHENTICATION_REQUIRED: 511;

    code: number;

    constructor(code: number | string, message?: string, props?: object);
    constructor(code: number | string, props?: object);
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/standard-error](https://npmjs.com/package/@types/standard-error)

# Credits
These definitions were written by [Labat Robin](https://github.com/roblabat), and [Saiichi Hashimoto](https://github.com/saiichihashimoto).

---
_Source: https://npm.io/package/@types/standard-http-error · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
