UNPKG

http-directives

Version:

A TypeScript-friendly package that provides strongly-typed HTTP constants

78 lines (76 loc) 3.27 kB
declare class StatusCodes { static readonly CONTINUE = 100; static readonly SWITCHING_PROTOCOLS = 101; static readonly PROCESSING = 102; static readonly EARLY_HINTS = 103; static readonly OK = 200; static readonly CREATED = 201; static readonly ACCEPTED = 202; static readonly NON_AUTHORITATIVE_INFORMATION = 203; static readonly NO_CONTENT = 204; static readonly RESET_CONTENT = 205; static readonly PARTIAL_CONTENT = 206; static readonly MULTI_STATUS = 207; static readonly ALREADY_REPORTED = 208; static readonly IM_USED = 226; static readonly MULTIPLE_CHOICE = 300; static readonly MOVED_PERMANENTLY = 301; static readonly FOUND = 302; static readonly SEE_OTHER = 303; static readonly NOT_MODIFIED = 304; /** @deprecated 305 Use other redirects, deprecated */ static readonly USE_PROXY = 305; static readonly TEMPORARY_REDIRECT = 307; static readonly PERMANENT_REDIRECT = 308; static readonly BAD_REQUEST = 400; static readonly UNAUTHORIZED = 401; static readonly PAYMENT_REQUIRED = 402; static readonly FORBIDDEN = 403; static readonly NOT_FOUND = 404; static readonly METHOD_NOT_ALLOWED = 405; static readonly NOT_ACCEPTABLE = 406; static readonly PROXY_AUTHENTICATION_REQUIRED = 407; static readonly REQUEST_TIMEOUT = 408; static readonly CONFLICT = 409; static readonly GONE = 410; static readonly LENGTH_REQUIRED = 411; static readonly PRECONDITION_FAILED = 412; static readonly PAYLOAD_TOO_LARGE = 413; static readonly URI_TOO_LONG = 414; static readonly UNSUPPORTED_MEDIA_TYPE = 415; static readonly RANGE_NOT_SATISFIABLE = 416; static readonly EXPECTATION_FAILED = 417; static readonly I_AM_A_TEAPOT = 418; static readonly MISDIRECTED_REQUEST = 421; static readonly UNPROCESSABLE_ENTITY = 422; static readonly LOCKED = 423; static readonly FAILED_DEPENDENCY = 424; static readonly TOO_EARLY = 425; static readonly UPGRADE_REQUIRED = 426; static readonly PRECONDITION_REQUIRED = 428; static readonly TOO_MANY_REQUESTS = 429; static readonly REQUEST_HEADER_FIELDS_TOO_LARGE = 431; static readonly REQUESTED_HOST_UNAVAILABLE = 434; static readonly RETRY_WITH = 449; static readonly UNAVAILABLE_FOR_LEGAL_REASONS = 451; static readonly INTERNAL_SERVER_ERROR = 500; static readonly NOT_IMPLEMENTED = 501; static readonly BAD_GATEWAY = 502; static readonly SERVICE_UNAVAILABLE = 503; static readonly GATEWAY_TIMEOUT = 504; static readonly HTTP_VERSION_NOT_SUPPORTED = 505; static readonly VARIANT_ALSO_NEGOTIATES = 506; static readonly INSUFFICIENT_STORAGE = 507; static readonly LOOP_DETECTED = 508; static readonly BANDWIDTH_LIMIT_EXCEEDED = 509; static readonly NOT_EXTENDED = 510; static readonly NETWORK_AUTHENTICATION_REQUIRED = 511; static readonly UNKNOWN_ERROR = 520; static readonly WEB_SERVER_IS_DOWN = 521; static readonly CONNECTION_TIMED_OUT = 522; static readonly ORIGIN_IS_UNREACHABLE = 523; static readonly A_TIMEOUT_OCCURRED = 524; static readonly SSL_HANDSHAKE_FAILED = 525; static readonly INVALID_SSL_CERTIFICATE = 526; } export { StatusCodes };