UNPKG

@blackglory/http-status

Version:
74 lines 4.82 kB
export var Informational; (function (Informational) { Informational[Informational["Continue"] = 100] = "Continue"; Informational[Informational["SwitchingProtocol"] = 101] = "SwitchingProtocol"; Informational[Informational["Processing"] = 102] = "Processing"; Informational[Informational["EarlyHints"] = 103] = "EarlyHints"; })(Informational = Informational || (Informational = {})); export var Successful; (function (Successful) { Successful[Successful["OK"] = 200] = "OK"; Successful[Successful["Created"] = 201] = "Created"; Successful[Successful["Accepted"] = 202] = "Accepted"; Successful[Successful["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation"; Successful[Successful["NoContent"] = 204] = "NoContent"; Successful[Successful["ResetContent"] = 205] = "ResetContent"; Successful[Successful["PartialContent"] = 206] = "PartialContent"; Successful[Successful["MultiStatus"] = 207] = "MultiStatus"; Successful[Successful["AlreadyReported"] = 208] = "AlreadyReported"; Successful[Successful["IMUsed"] = 226] = "IMUsed"; })(Successful = Successful || (Successful = {})); export var Redirection; (function (Redirection) { Redirection[Redirection["MultipleChoice"] = 300] = "MultipleChoice"; Redirection[Redirection["MovedPermanently"] = 301] = "MovedPermanently"; Redirection[Redirection["Found"] = 302] = "Found"; Redirection[Redirection["SeeOther"] = 303] = "SeeOther"; Redirection[Redirection["NotModified"] = 304] = "NotModified"; Redirection[Redirection["TemporaryRedirect"] = 307] = "TemporaryRedirect"; Redirection[Redirection["PermanentRedirect"] = 308] = "PermanentRedirect"; })(Redirection = Redirection || (Redirection = {})); export var ClientError; (function (ClientError) { ClientError[ClientError["BadRequest"] = 400] = "BadRequest"; ClientError[ClientError["Unauthorized"] = 401] = "Unauthorized"; ClientError[ClientError["Forbidden"] = 403] = "Forbidden"; ClientError[ClientError["NotFound"] = 404] = "NotFound"; ClientError[ClientError["MethodNotAllowed"] = 405] = "MethodNotAllowed"; ClientError[ClientError["NotAcceptable"] = 406] = "NotAcceptable"; ClientError[ClientError["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; ClientError[ClientError["RequestTimeout"] = 408] = "RequestTimeout"; ClientError[ClientError["Conflict"] = 409] = "Conflict"; ClientError[ClientError["Gone"] = 410] = "Gone"; ClientError[ClientError["LengthRequired"] = 411] = "LengthRequired"; ClientError[ClientError["PreconditionFailed"] = 412] = "PreconditionFailed"; ClientError[ClientError["PayloadTooLarge"] = 413] = "PayloadTooLarge"; ClientError[ClientError["URITooLong"] = 414] = "URITooLong"; ClientError[ClientError["UnsupportedMediaType"] = 415] = "UnsupportedMediaType"; ClientError[ClientError["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable"; ClientError[ClientError["ExpectationFailed"] = 417] = "ExpectationFailed"; ClientError[ClientError["MisdirectedRequest"] = 421] = "MisdirectedRequest"; ClientError[ClientError["UnprocessableEntity"] = 422] = "UnprocessableEntity"; ClientError[ClientError["Locked"] = 423] = "Locked"; ClientError[ClientError["FailedDependency"] = 424] = "FailedDependency"; ClientError[ClientError["UpgradeRequired"] = 426] = "UpgradeRequired"; ClientError[ClientError["PreconditionRequired"] = 428] = "PreconditionRequired"; ClientError[ClientError["TooManyRequests"] = 429] = "TooManyRequests"; ClientError[ClientError["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge"; ClientError[ClientError["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons"; })(ClientError = ClientError || (ClientError = {})); export var ServerError; (function (ServerError) { ServerError[ServerError["InternalServerError"] = 500] = "InternalServerError"; ServerError[ServerError["NotImplemented"] = 501] = "NotImplemented"; ServerError[ServerError["BadGateway"] = 502] = "BadGateway"; ServerError[ServerError["ServiceUnavailable"] = 503] = "ServiceUnavailable"; ServerError[ServerError["GatewayTimeout"] = 504] = "GatewayTimeout"; ServerError[ServerError["HTTPVersionNotSupported"] = 505] = "HTTPVersionNotSupported"; ServerError[ServerError["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates"; ServerError[ServerError["InsufficientStorage"] = 507] = "InsufficientStorage"; ServerError[ServerError["LoopDetected"] = 508] = "LoopDetected"; ServerError[ServerError["NotExtended"] = 510] = "NotExtended"; ServerError[ServerError["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired"; })(ServerError = ServerError || (ServerError = {})); //# sourceMappingURL=enum.js.map