UNPKG

@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) 4.11 kB
"use strict";const e="Continue",t="Switching Protocol",o="Processing",r="Early Hints",i="Created",n="Accepted",a="Non Authoritative Information",s="No Content",d="Reset Content",p="Partial Content",l="Multi Status",u="Already Reported",x="I'm Used",c="Multiple Choices",R="Moved Permanently",y="Found",P="See Other",N="Not Modified",g="Use Proxy",m="Switch Proxy",q="Temporary Redirect",T="Permanent Redirect",h="Bad Request",S="Unauthorized",A="Payment Required",U="Forbidden",M="Not Found",F="Method Not Allowed",b="Not Acceptable",C="Proxy Authentication Required",L="Request Timeout",f="Conflict",v="Gone",I="Length Required",w="Precondition Failed",E="Payload Too Large",G="URI Too Long",H="Unsupported Media Type",O="Range Not Satisfiable",k="Expectation Failed",B="I'm A Teapot",D="Misdirected Request",V="Unprocessable Entity",z="Locked",_="Failed Dependency",j="Too Early",K="Upgrade Required",J="Precondition Required",Q="Too Many Requests",W="Request Header Fields Too Large",X="Unavailable For Legal Reasons",Y="Internal Server Error",Z="Not Implemented",$="Bad Gateway",ee="Service Unavailable",te="Gateway Timeout",oe="HTTP Version Not Supported",re="Variant Also Negotiates",ie="Insufficient Storage",ne="Loop Detected",ae="Not Extended",se="Network Authentication Required",de=Object.freeze(Object.defineProperty({__proto__:null,Accepted:n,AlreadyReported:u,BadGateway:$,BadRequest:h,Conflict:f,Continue:e,Created:i,EarlyHints:r,ExpectationFailed:k,FailedDependency:_,Forbidden:U,Found:y,GatewayTimeout:te,Gone:v,HttpVersionNotSupported:oe,ImAteapot:B,ImUsed:x,InsufficientStorage:ie,InternalServerError:Y,LengthRequired:I,Locked:z,LoopDetected:ne,MethodNotAllowed:F,MisdirectedRequest:D,MovedPermanently:R,MultiStatus:l,MultipleChoices:c,NetworkAuthenticationRequired:se,NoContent:s,NonAuthoritativeInformation:a,NotAcceptable:b,NotExtended:ae,NotFound:M,NotImplemented:Z,NotModified:N,Ok:"OK",PartialContent:p,PayloadTooLarge:E,PaymentRequired:A,PermanentRedirect:T,PreconditionFailed:w,PreconditionRequired:J,Processing:o,ProxyAuthenticationRequired:C,RangeNotSatisfiable:O,RequestHeaderFieldsTooLarge:W,RequestTimeout:L,ResetContent:d,SeeOther:P,ServiceUnavailable:ee,SwitchProxy:m,SwitchingProtocol:t,TemporaryRedirect:q,TooEarly:j,TooManyRequests:Q,Unauthorized:S,UnavailableForLegalReasons:X,UnprocessableEntity:V,UnsupportedMediaType:H,UpgradeRequired:K,UriTooLong:G,UseProxy:g,VariantAlsoNegotiates:re},Symbol.toStringTag,{value:"Module"}));exports.Accepted=n,exports.AlreadyReported=u,exports.BadGateway=$,exports.BadRequest=h,exports.Conflict=f,exports.Continue=e,exports.Created=i,exports.EarlyHints=r,exports.ExpectationFailed=k,exports.FailedDependency=_,exports.Forbidden=U,exports.Found=y,exports.GatewayTimeout=te,exports.Gone=v,exports.HttpVersionNotSupported=oe,exports.ImAteapot=B,exports.ImUsed=x,exports.InsufficientStorage=ie,exports.InternalServerError=Y,exports.LengthRequired=I,exports.Locked=z,exports.LoopDetected=ne,exports.MethodNotAllowed=F,exports.MisdirectedRequest=D,exports.MovedPermanently=R,exports.MultiStatus=l,exports.MultipleChoices=c,exports.NetworkAuthenticationRequired=se,exports.NoContent=s,exports.NonAuthoritativeInformation=a,exports.NotAcceptable=b,exports.NotExtended=ae,exports.NotFound=M,exports.NotImplemented=Z,exports.NotModified=N,exports.Ok="OK",exports.PartialContent=p,exports.PayloadTooLarge=E,exports.PaymentRequired=A,exports.PermanentRedirect=T,exports.PreconditionFailed=w,exports.PreconditionRequired=J,exports.Processing=o,exports.ProxyAuthenticationRequired=C,exports.RangeNotSatisfiable=O,exports.RequestHeaderFieldsTooLarge=W,exports.RequestTimeout=L,exports.ResetContent=d,exports.SeeOther=P,exports.ServiceUnavailable=ee,exports.SwitchProxy=m,exports.SwitchingProtocol=t,exports.TemporaryRedirect=q,exports.TooEarly=j,exports.TooManyRequests=Q,exports.Unauthorized=S,exports.UnavailableForLegalReasons=X,exports.UnprocessableEntity=V,exports.UnsupportedMediaType=H,exports.UpgradeRequired=K,exports.UriTooLong=G,exports.UseProxy=g,exports.VariantAlsoNegotiates=re,exports.texts=de; //# sourceMappingURL=texts-9a641a0e.cjs.map