UNPKG

http-errors-enhanced

Version:

Create HTTP errors with additional properties for any framework.

68 lines (67 loc) 3.04 kB
export declare const identifierByCodes: Record<string, string>; export declare const codesByIdentifier: Record<string, number>; export declare const messagesByCodes: Record<string, string>; export declare const phrasesByCodes: Record<string, string>; export declare const CONTINUE = 100; export declare const SWITCHING_PROTOCOLS = 101; export declare const PROCESSING = 102; export declare const EARLY_HINTS = 103; export declare const OK = 200; export declare const CREATED = 201; export declare const ACCEPTED = 202; export declare const NON_AUTHORITATIVE_INFORMATION = 203; export declare const NO_CONTENT = 204; export declare const RESET_CONTENT = 205; export declare const PARTIAL_CONTENT = 206; export declare const MULTI_STATUS = 207; export declare const ALREADY_REPORTED = 208; export declare const IMUSED = 226; export declare const MULTIPLE_CHOICES = 300; export declare const MOVED_PERMANENTLY = 301; export declare const FOUND = 302; export declare const SEE_OTHER = 303; export declare const NOT_MODIFIED = 304; export declare const USE_PROXY = 305; export declare const TEMPORARY_REDIRECT = 307; export declare const PERMANENT_REDIRECT = 308; export declare const BAD_REQUEST = 400; export declare const UNAUTHORIZED = 401; export declare const PAYMENT_REQUIRED = 402; export declare const FORBIDDEN = 403; export declare const NOT_FOUND = 404; export declare const METHOD_NOT_ALLOWED = 405; export declare const NOT_ACCEPTABLE = 406; export declare const PROXY_AUTHENTICATION_REQUIRED = 407; export declare const REQUEST_TIMEOUT = 408; export declare const CONFLICT = 409; export declare const GONE = 410; export declare const LENGTH_REQUIRED = 411; export declare const PRECONDITION_FAILED = 412; export declare const PAYLOAD_TOO_LARGE = 413; export declare const URITOO_LONG = 414; export declare const UNSUPPORTED_MEDIA_TYPE = 415; export declare const RANGE_NOT_SATISFIABLE = 416; export declare const EXPECTATION_FAILED = 417; export declare const IMA_TEAPOT = 418; export declare const MISDIRECTED_REQUEST = 421; export declare const UNPROCESSABLE_ENTITY = 422; export declare const LOCKED = 423; export declare const FAILED_DEPENDENCY = 424; export declare const TOO_EARLY = 425; export declare const UPGRADE_REQUIRED = 426; export declare const PRECONDITION_REQUIRED = 428; export declare const TOO_MANY_REQUESTS = 429; export declare const REQUEST_HEADER_FIELDS_TOO_LARGE = 431; export declare const UNAVAILABLE_FOR_LEGAL_REASONS = 451; export declare const INTERNAL_SERVER_ERROR = 500; export declare const NOT_IMPLEMENTED = 501; export declare const BAD_GATEWAY = 502; export declare const SERVICE_UNAVAILABLE = 503; export declare const GATEWAY_TIMEOUT = 504; export declare const HTTPVERSION_NOT_SUPPORTED = 505; export declare const VARIANT_ALSO_NEGOTIATES = 506; export declare const INSUFFICIENT_STORAGE = 507; export declare const LOOP_DETECTED = 508; export declare const BANDWIDTH_LIMIT_EXCEEDED = 509; export declare const NOT_EXTENDED = 510; export declare const NETWORK_AUTHENTICATION_REQUIRED = 511;