UNPKG

@tkrotoff/fetch

Version:
71 lines (70 loc) 2.75 kB
/** * [The list of HTTP status codes](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes) as an enum. * * With TypeScript use `typeof HttpStatus[keyof typeof HttpStatus]` to pull out the values * (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums) */ export declare const HttpStatus: { readonly _100_Continue: 100; readonly _101_SwitchingProtocols: 101; readonly _102_Processing: 102; readonly _103_EarlyHints: 103; readonly _200_OK: 200; readonly _201_Created: 201; readonly _202_Accepted: 202; readonly _203_NonAuthoritativeInformation: 203; readonly _204_NoContent: 204; readonly _205_ResetContent: 205; readonly _206_PartialContent: 206; readonly _207_MultiStatus: 207; readonly _208_AlreadyReported: 208; readonly _226_IMUsed: 226; readonly _300_MultipleChoices: 300; readonly _301_MovedPermanently: 301; readonly _302_Found: 302; readonly _303_SeeOther: 303; readonly _304_NotModified: 304; readonly _305_UseProxy: 305; readonly _307_TemporaryRedirect: 307; readonly _308_PermanentRedirect: 308; readonly _400_BadRequest: 400; readonly _401_Unauthorized: 401; readonly _402_PaymentRequired: 402; readonly _403_Forbidden: 403; readonly _404_NotFound: 404; readonly _405_MethodNotAllowed: 405; readonly _406_NotAcceptable: 406; readonly _407_ProxyAuthenticationRequired: 407; readonly _408_RequestTimeout: 408; readonly _409_Conflict: 409; readonly _410_Gone: 410; readonly _411_LengthRequired: 411; readonly _412_PreconditionFailed: 412; readonly _413_PayloadTooLarge: 413; readonly _414_URITooLong: 414; readonly _415_UnsupportedMediaType: 415; readonly _416_RangeNotSatisfiable: 416; readonly _417_ExpectationFailed: 417; readonly _421_MisdirectedRequest: 421; readonly _422_UnprocessableEntity: 422; readonly _423_Locked: 423; readonly _424_FailedDependency: 424; readonly _425_TooEarly: 425; readonly _426_UpgradeRequired: 426; readonly _428_PreconditionRequired: 428; readonly _429_TooManyRequests: 429; readonly _431_RequestHeaderFieldsTooLarge: 431; readonly _451_UnavailableForLegalReasons: 451; readonly _500_InternalServerError: 500; readonly _501_NotImplemented: 501; readonly _502_BadGateway: 502; readonly _503_ServiceUnavailable: 503; readonly _504_GatewayTimeout: 504; readonly _505_HTTPVersionNotSupported: 505; readonly _506_VariantAlsoNegotiates: 506; readonly _507_InsufficientStorage: 507; readonly _508_LoopDetected: 508; readonly _510_NotExtended: 510; readonly _511_NetworkAuthenticationRequired: 511; readonly _420_MethodFailure: 420; };