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
// 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
Credits
These definitions were written by Labat Robin, and Saiichi Hashimoto.