@poppanator/http-constants
Version:
This package contains various HTTP constants: http status codes and texts, HTTP header names and HTTP methods, and a few related utility function.
3 lines (2 loc) • 3.07 kB
JavaScript
"use strict";const e=Object.freeze(Object.defineProperty({__proto__:null,Accepted:202,AlreadyReported:208,BadGateway:502,BadRequest:400,Conflict:409,Continue:100,Created:201,EarlyHints:103,ExpectationFailed:417,FailedDependency:424,Forbidden:403,Found:302,GatewayTimeout:504,Gone:410,HttpVersionNotSupported:505,ImAteapot:418,ImUsed:226,InsufficientStorage:507,InternalServerError:500,LengthRequired:411,Locked:423,LoopDetected:508,MethodNotAllowed:405,MisdirectedRequest:421,MovedPermanently:301,MultiStatus:207,MultipleChoices:300,NetworkAuthenticationRequired:511,NoContent:204,NonAuthoritativeInformation:203,NotAcceptable:406,NotExtended:510,NotFound:404,NotImplemented:501,NotModified:304,Ok:200,PartialContent:206,PayloadTooLarge:413,PaymentRequired:402,PermanentRedirect:308,PreconditionFailed:412,PreconditionRequired:428,Processing:102,ProxyAuthenticationRequired:407,RangeNotSatisfiable:416,RequestHeaderFieldsTooLarge:431,RequestTimeout:408,ResetContent:205,SeeOther:303,ServiceUnavailable:503,SwitchProxy:306,SwitchingProtocol:101,TemporaryRedirect:307,TooEarly:425,TooManyRequests:429,Unauthorized:401,UnavailableForLegalReasons:451,UnprocessableEntity:422,UnsupportedMediaType:415,UpgradeRequired:426,UriTooLong:414,UseProxy:305,VariantAlsoNegotiates:506},Symbol.toStringTag,{value:"Module"}));exports.Accepted=202,exports.AlreadyReported=208,exports.BadGateway=502,exports.BadRequest=400,exports.Conflict=409,exports.Continue=100,exports.Created=201,exports.EarlyHints=103,exports.ExpectationFailed=417,exports.FailedDependency=424,exports.Forbidden=403,exports.Found=302,exports.GatewayTimeout=504,exports.Gone=410,exports.HttpVersionNotSupported=505,exports.ImAteapot=418,exports.ImUsed=226,exports.InsufficientStorage=507,exports.InternalServerError=500,exports.LengthRequired=411,exports.Locked=423,exports.LoopDetected=508,exports.MethodNotAllowed=405,exports.MisdirectedRequest=421,exports.MovedPermanently=301,exports.MultiStatus=207,exports.MultipleChoices=300,exports.NetworkAuthenticationRequired=511,exports.NoContent=204,exports.NonAuthoritativeInformation=203,exports.NotAcceptable=406,exports.NotExtended=510,exports.NotFound=404,exports.NotImplemented=501,exports.NotModified=304,exports.Ok=200,exports.PartialContent=206,exports.PayloadTooLarge=413,exports.PaymentRequired=402,exports.PermanentRedirect=308,exports.PreconditionFailed=412,exports.PreconditionRequired=428,exports.Processing=102,exports.ProxyAuthenticationRequired=407,exports.RangeNotSatisfiable=416,exports.RequestHeaderFieldsTooLarge=431,exports.RequestTimeout=408,exports.ResetContent=205,exports.SeeOther=303,exports.ServiceUnavailable=503,exports.SwitchProxy=306,exports.SwitchingProtocol=101,exports.TemporaryRedirect=307,exports.TooEarly=425,exports.TooManyRequests=429,exports.Unauthorized=401,exports.UnavailableForLegalReasons=451,exports.UnprocessableEntity=422,exports.UnsupportedMediaType=415,exports.UpgradeRequired=426,exports.UriTooLong=414,exports.UseProxy=305,exports.VariantAlsoNegotiates=506,exports.codes=e;
//# sourceMappingURL=codes-ed46191f.cjs.map