@http-status-codes/i18n-en
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -1,1 +0,1 @@ | ||
"use strict";function e(e){return e in r||e in s}function t(t){if(!e(t))throw new Error(`${t} is not a known HTTP status code or status text.`);const[r,n]=[s[t]||t,o[t]||i[t]];return{code:r,message:n,success:r<400}}const r={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Switch proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",440:"Login Timeout (Microsoft)",444:"No Response (Nginx)",449:"Retry With (Microsoft)",450:"Blocked by Windows Parental Controls (Microsoft)",451:"Unavailable For Legal Reasons",494:"Request Header Too Large (Nginx)",495:"Cert Error (Nginx)",496:"No Cert (Nginx)",497:"HTTP to HTTPS (Nginx)",498:"Token expired/invalid (Esri)",499:"Token required (Esri)",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required",520:"Unknown Error (Microsoft / CloudFlare)",521:"Web Server Is Down (CloudFlare)",522:"Connection Timed Out (CloudFlare)",523:"Origin Is Unreachable (CloudFlare)",524:"A Timeout Occurred (CloudFlare)",525:"SSL Handshake Failed (CloudFlare)",526:"Invalid SSL Certificate (CloudFlare)",527:"Railgun Error (CloudFlare)"},o={100:"Continue:The server has received the request headers, and that the client should proceed to send the request body.",101:"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",102:"Processing:The server has received and is processing the request, but no response is available yet.",200:"OK:The standard response for successful HTTP requests.",201:"Created:The request has been fulfilled and a new resource has been created.",202:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",203:"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",204:"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",205:"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",206:"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",207:"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",208:"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",226:"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",300:"Multiple choices:There are multiple options that the client may follow.",301:"Moved permanently:The resource has been moved and all further requests should reference its new URI.",302:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',303:"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",304:"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",305:"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",306:"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",307:"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",308:"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",400:"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",401:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",402:"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",403:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",404:"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",405:"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",406:"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",407:"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",408:"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",409:"Conflict:The request cannot be completed due to a conflict in the request parameters.",410:"Gone:The resource is no longer available at the requested URI and no redirection will be given.",411:"Length required:The request did not specify the length of its content as required by the resource.",412:"Precondition failed:The server does not meet one of the preconditions specified by the client.",413:"Request entity too large:The request is larger than what the server is able to process.",414:"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",415:"Unsupported media type:The client provided data with a media type that the server does not support.",416:"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",417:"Expectation failed:The server cannot meet the requirements of the Expect request-header field.",418:"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",421:"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",422:"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",423:"Locked:The requested resource was found but has been locked and will not be returned.",424:"Failed dependency:The request failed due to a failure of a previous request.",426:"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",428:"Precondition required:The origin server requires the request to be conditional.",429:'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',431:"Request header fields too large:The server is unwilling to process the request because its header fields are too large.",440:"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",444:"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",449:"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",450:"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",451:"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",494:"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",495:"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",496:"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",497:"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",498:"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",499:"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",500:"Internal server error:A generic status for an error in the server itself.",501:"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",502:"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",503:"Service unavailable:The server is down and is not accepting requests.",504:"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",505:"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",506:"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",507:"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",508:"Loop detected:The server detected an infinite loop in the request.",509:"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",510:"Not extended:Further extensions to the request are necessary for it to be fulfilled.",511:"Network authentication required:The client must authenticate with the network before sending requests.",520:'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',521:"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",522:"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",523:"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",524:"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",525:"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",526:"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",527:"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."},s={Continue:100,"Switching Protocols":101,Processing:102,OK:200,Created:201,Accepted:202,"Non-Authoritative Information":203,"No Content":204,"Reset Content":205,"Partial Content":206,"Multi-Status":207,"Already Reported":208,"IM Used":226,"Multiple Choices":300,"Moved Permanently":301,Found:302,"See Other":303,"Not Modified":304,"Use Proxy":305,"Switch proxy":306,"Temporary Redirect":307,"Permanent Redirect":308,"Bad Request":400,Unauthorized:401,"Payment Required":402,Forbidden:403,"Not Found":404,"Method Not Allowed":405,"Not Acceptable":406,"Proxy Authentication Required":407,"Request Timeout":408,Conflict:409,Gone:410,"Length Required":411,"Precondition Failed":412,"Payload Too Large":413,"URI Too Long":414,"Unsupported Media Type":415,"Range Not Satisfiable":416,"Expectation Failed":417,"I'm a Teapot":418,"Misdirected Request":421,"Unprocessable Entity":422,Locked:423,"Failed Dependency":424,"Upgrade Required":426,"Precondition Required":428,"Too Many Requests":429,"Request Header Fields Too Large":431,"Login Timeout (Microsoft)":440,"No Response (Nginx)":444,"Retry With (Microsoft)":449,"Blocked by Windows Parental Controls (Microsoft)":450,"Unavailable For Legal Reasons":451,"Request Header Too Large (Nginx)":494,"Cert Error (Nginx)":495,"No Cert (Nginx)":496,"HTTP to HTTPS (Nginx)":497,"Token expired/invalid (Esri)":498,"Token required (Esri)":499,"Internal Server Error":500,"Not Implemented":501,"Bad Gateway":502,"Service Unavailable":503,"Gateway Timeout":504,"HTTP Version Not Supported":505,"Variant Also Negotiates":506,"Insufficient Storage":507,"Loop Detected":508,"Bandwidth Limit Exceeded":509,"Not Extended":510,"Network Authentication Required":511,"Unknown Error (Microsoft / CloudFlare)":520,"Web Server Is Down (CloudFlare)":521,"Connection Timed Out (CloudFlare)":522,"Origin Is Unreachable (CloudFlare)":523,"A Timeout Occurred (CloudFlare)":524,"SSL Handshake Failed (CloudFlare)":525,"Invalid SSL Certificate (CloudFlare)":526,"Railgun Error (CloudFlare)":527},i={Continue:"Continue:The server has received the request headers, and that the client should proceed to send the request body.","Switching Protocols":"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",Processing:"Processing:The server has received and is processing the request, but no response is available yet.",OK:"OK:The standard response for successful HTTP requests.",Created:"Created:The request has been fulfilled and a new resource has been created.",Accepted:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.","Non-Authoritative Information":"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.","No Content":"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.","Reset Content":"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.","Partial Content":"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.","Multi-Status":"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","Already Reported":"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.","IM Used":"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","Multiple Choices":"Multiple choices:There are multiple options that the client may follow.","Moved Permanently":"Moved permanently:The resource has been moved and all further requests should reference its new URI.",Found:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',"See Other":"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.","Not Modified":"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.","Use Proxy":"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.","Switch proxy":"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.","Temporary Redirect":"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.","Permanent Redirect":"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests","Bad Request":"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",Unauthorized:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.","Payment Required":"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",Forbidden:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.","Not Found":"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.","Method Not Allowed":"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.","Not Acceptable":"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.","Proxy Authentication Required":"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.","Request Timeout":"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",Conflict:"Conflict:The request cannot be completed due to a conflict in the request parameters.",Gone:"Gone:The resource is no longer available at the requested URI and no redirection will be given.","Length Required":"Length required:The request did not specify the length of its content as required by the resource.","Precondition Failed":"Precondition failed:The server does not meet one of the preconditions specified by the client.","Payload Too Large":"Request entity too large:The request is larger than what the server is able to process.","URI Too Long":"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.","Unsupported Media Type":"Unsupported media type:The client provided data with a media type that the server does not support.","Range Not Satisfiable":"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.","Expectation Failed":"Expectation failed:The server cannot meet the requirements of the Expect request-header field.","I'm a Teapot":"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.","Misdirected Request":"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.","Unprocessable Entity":"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",Locked:"Locked:The requested resource was found but has been locked and will not be returned.","Failed Dependency":"Failed dependency:The request failed due to a failure of a previous request.","Upgrade Required":"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.","Precondition Required":"Precondition required:The origin server requires the request to be conditional.","Too Many Requests":'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',"Request Header Fields Too Large":"Request header fields too large:The server is unwilling to process the request because its header fields are too large.","Login Timeout (Microsoft)":"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.","No Response (Nginx)":"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).","Retry With (Microsoft)":"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.","Blocked by Windows Parental Controls (Microsoft)":"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.","Unavailable For Legal Reasons":"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.","Request Header Too Large (Nginx)":"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).","Cert Error (Nginx)":"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.","No Cert (Nginx)":"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.","HTTP to HTTPS (Nginx)":"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.","Token expired/invalid (Esri)":"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.","Token required (Esri)":"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).","Internal Server Error":"Internal server error:A generic status for an error in the server itself.","Not Implemented":"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.","Bad Gateway":"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.","Service Unavailable":"Service unavailable:The server is down and is not accepting requests.","Gateway Timeout":"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.","HTTP Version Not Supported":"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.","Variant Also Negotiates":"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.","Insufficient Storage":"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.","Loop Detected":"Loop detected:The server detected an infinite loop in the request.","Bandwidth Limit Exceeded":"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.","Not Extended":"Not extended:Further extensions to the request are necessary for it to be fulfilled.","Network Authentication Required":"Network authentication required:The client must authenticate with the network before sending requests.","Unknown Error (Microsoft / CloudFlare)":'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',"Web Server Is Down (CloudFlare)":"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.","Connection Timed Out (CloudFlare)":"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.","Origin Is Unreachable (CloudFlare)":"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.","A Timeout Occurred (CloudFlare)":"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","SSL Handshake Failed (CloudFlare)":"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.","Invalid SSL Certificate (CloudFlare)":"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.","Railgun Error (CloudFlare)":"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."};var n,a,d;exports.HttpStatusCode=void 0,(n=exports.HttpStatusCode||(exports.HttpStatusCode={}))[n.CONTINUE=100]="CONTINUE",n[n.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",n[n.PROCESSING=102]="PROCESSING",n[n.OK=200]="OK",n[n.CREATED=201]="CREATED",n[n.ACCEPTED=202]="ACCEPTED",n[n.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",n[n.NO_CONTENT=204]="NO_CONTENT",n[n.RESET_CONTENT=205]="RESET_CONTENT",n[n.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",n[n.MULTI_STATUS=207]="MULTI_STATUS",n[n.ALREADY_REPORTED=208]="ALREADY_REPORTED",n[n.IM_USED=226]="IM_USED",n[n.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",n[n.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",n[n.FOUND=302]="FOUND",n[n.SEE_OTHER=303]="SEE_OTHER",n[n.NOT_MODIFIED=304]="NOT_MODIFIED",n[n.USE_PROXY=305]="USE_PROXY",n[n.SWITCH_PROXY=306]="SWITCH_PROXY",n[n.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",n[n.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.UNAUTHORIZED=401]="UNAUTHORIZED",n[n.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",n[n.FORBIDDEN=403]="FORBIDDEN",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",n[n.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",n[n.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",n[n.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",n[n.CONFLICT=409]="CONFLICT",n[n.GONE=410]="GONE",n[n.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",n[n.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",n[n.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",n[n.URI_TOO_LONG=414]="URI_TOO_LONG",n[n.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",n[n.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",n[n.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",n[n.I_M_A_TEAPOT=418]="I_M_A_TEAPOT",n[n.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",n[n.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",n[n.LOCKED=423]="LOCKED",n[n.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",n[n.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",n[n.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",n[n.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",n[n.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",n[n.LOGIN_TIMEOUT_MICROSOFT=440]="LOGIN_TIMEOUT_MICROSOFT",n[n.NO_RESPONSE_NGINX=444]="NO_RESPONSE_NGINX",n[n.RETRY_WITH_MICROSOFT=449]="RETRY_WITH_MICROSOFT",n[n.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT=450]="BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT",n[n.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",n[n.REQUEST_HEADER_TOO_LARGE_NGINX=494]="REQUEST_HEADER_TOO_LARGE_NGINX",n[n.CERT_ERROR_NGINX=495]="CERT_ERROR_NGINX",n[n.NO_CERT_NGINX=496]="NO_CERT_NGINX",n[n.HTTP_TO_HTTPS_NGINX=497]="HTTP_TO_HTTPS_NGINX",n[n.TOKEN_EXPIRED_INVALID_ESRI=498]="TOKEN_EXPIRED_INVALID_ESRI",n[n.TOKEN_REQUIRED_ESRI=499]="TOKEN_REQUIRED_ESRI",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n[n.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",n[n.BAD_GATEWAY=502]="BAD_GATEWAY",n[n.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",n[n.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",n[n.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",n[n.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",n[n.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",n[n.LOOP_DETECTED=508]="LOOP_DETECTED",n[n.BANDWIDTH_LIMIT_EXCEEDED=509]="BANDWIDTH_LIMIT_EXCEEDED",n[n.NOT_EXTENDED=510]="NOT_EXTENDED",n[n.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",n[n.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE=520]="UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE",n[n.WEB_SERVER_IS_DOWN_CLOUD_FLARE=521]="WEB_SERVER_IS_DOWN_CLOUD_FLARE",n[n.CONNECTION_TIMED_OUT_CLOUD_FLARE=522]="CONNECTION_TIMED_OUT_CLOUD_FLARE",n[n.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE=523]="ORIGIN_IS_UNREACHABLE_CLOUD_FLARE",n[n.A_TIMEOUT_OCCURRED_CLOUD_FLARE=524]="A_TIMEOUT_OCCURRED_CLOUD_FLARE",n[n.SSL_HANDSHAKE_FAILED_CLOUD_FLARE=525]="SSL_HANDSHAKE_FAILED_CLOUD_FLARE",n[n.INVALID_SSL_CERTIFICATE_CLOUD_FLARE=526]="INVALID_SSL_CERTIFICATE_CLOUD_FLARE",n[n.RAILGUN_ERROR_CLOUD_FLARE=527]="RAILGUN_ERROR_CLOUD_FLARE",exports.HttpStatusDescription=void 0,(a=exports.HttpStatusDescription||(exports.HttpStatusDescription={})).CONTINUE="Continue:The server has received the request headers, and that the client should proceed to send the request body.",a.SWITCHING_PROTOCOLS="Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",a.PROCESSING="Processing:The server has received and is processing the request, but no response is available yet.",a.OK="OK:The standard response for successful HTTP requests.",a.CREATED="Created:The request has been fulfilled and a new resource has been created.",a.ACCEPTED="Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",a.NON_AUTHORITATIVE_INFORMATION="Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",a.NO_CONTENT="No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",a.RESET_CONTENT="Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",a.PARTIAL_CONTENT="Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",a.MULTI_STATUS="Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",a.ALREADY_REPORTED="Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",a.IM_USED="IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",a.MULTIPLE_CHOICES="Multiple choices:There are multiple options that the client may follow.",a.MOVED_PERMANENTLY="Moved permanently:The resource has been moved and all further requests should reference its new URI.",a.FOUND='Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',a.SEE_OTHER="See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",a.NOT_MODIFIED="Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",a.USE_PROXY="Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",a.SWITCH_PROXY="Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",a.TEMPORARY_REDIRECT="Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",a.PERMANENT_REDIRECT="Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",a.BAD_REQUEST="Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",a.UNAUTHORIZED="Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",a.PAYMENT_REQUIRED="Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",a.FORBIDDEN="Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",a.NOT_FOUND="Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",a.METHOD_NOT_ALLOWED="Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",a.NOT_ACCEPTABLE="Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",a.PROXY_AUTHENTICATION_REQUIRED="Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",a.REQUEST_TIMEOUT="Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",a.CONFLICT="Conflict:The request cannot be completed due to a conflict in the request parameters.",a.GONE="Gone:The resource is no longer available at the requested URI and no redirection will be given.",a.LENGTH_REQUIRED="Length required:The request did not specify the length of its content as required by the resource.",a.PRECONDITION_FAILED="Precondition failed:The server does not meet one of the preconditions specified by the client.",a.PAYLOAD_TOO_LARGE="Request entity too large:The request is larger than what the server is able to process.",a.URI_TOO_LONG="Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",a.UNSUPPORTED_MEDIA_TYPE="Unsupported media type:The client provided data with a media type that the server does not support.",a.RANGE_NOT_SATISFIABLE="Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",a.EXPECTATION_FAILED="Expectation failed:The server cannot meet the requirements of the Expect request-header field.",a.I_M_A_TEAPOT="I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",a.MISDIRECTED_REQUEST="Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",a.UNPROCESSABLE_ENTITY="Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",a.LOCKED="Locked:The requested resource was found but has been locked and will not be returned.",a.FAILED_DEPENDENCY="Failed dependency:The request failed due to a failure of a previous request.",a.UPGRADE_REQUIRED="Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",a.PRECONDITION_REQUIRED="Precondition required:The origin server requires the request to be conditional.",a.TOO_MANY_REQUESTS='Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',a.REQUEST_HEADER_FIELDS_TOO_LARGE="Request header fields too large:The server is unwilling to process the request because its header fields are too large.",a.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",a.NO_RESPONSE_NGINX="No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",a.RETRY_WITH_MICROSOFT="Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",a.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",a.UNAVAILABLE_FOR_LEGAL_REASONS="Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",a.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",a.CERT_ERROR_NGINX="Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",a.NO_CERT_NGINX="No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",a.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",a.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",a.TOKEN_REQUIRED_ESRI="Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",a.INTERNAL_SERVER_ERROR="Internal server error:A generic status for an error in the server itself.",a.NOT_IMPLEMENTED="Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",a.BAD_GATEWAY="Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",a.SERVICE_UNAVAILABLE="Service unavailable:The server is down and is not accepting requests.",a.GATEWAY_TIMEOUT="Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",a.HTTP_VERSION_NOT_SUPPORTED="HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",a.VARIANT_ALSO_NEGOTIATES="Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",a.INSUFFICIENT_STORAGE="Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",a.LOOP_DETECTED="Loop detected:The server detected an infinite loop in the request.",a.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",a.NOT_EXTENDED="Not extended:Further extensions to the request are necessary for it to be fulfilled.",a.NETWORK_AUTHENTICATION_REQUIRED="Network authentication required:The client must authenticate with the network before sending requests.",a.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE='Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',a.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",a.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",a.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",a.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",a.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",a.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",a.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established.",exports.HttpStatusText=void 0,(d=exports.HttpStatusText||(exports.HttpStatusText={})).CONTINUE="Continue",d.SWITCHING_PROTOCOLS="Switching Protocols",d.PROCESSING="Processing",d.OK="OK",d.CREATED="Created",d.ACCEPTED="Accepted",d.NON_AUTHORITATIVE_INFORMATION="Non-Authoritative Information",d.NO_CONTENT="No Content",d.RESET_CONTENT="Reset Content",d.PARTIAL_CONTENT="Partial Content",d.MULTI_STATUS="Multi-Status",d.ALREADY_REPORTED="Already Reported",d.IM_USED="IM Used",d.MULTIPLE_CHOICES="Multiple Choices",d.MOVED_PERMANENTLY="Moved Permanently",d.FOUND="Found",d.SEE_OTHER="See Other",d.NOT_MODIFIED="Not Modified",d.USE_PROXY="Use Proxy",d.SWITCH_PROXY="Switch proxy",d.TEMPORARY_REDIRECT="Temporary Redirect",d.PERMANENT_REDIRECT="Permanent Redirect",d.BAD_REQUEST="Bad Request",d.UNAUTHORIZED="Unauthorized",d.PAYMENT_REQUIRED="Payment Required",d.FORBIDDEN="Forbidden",d.NOT_FOUND="Not Found",d.METHOD_NOT_ALLOWED="Method Not Allowed",d.NOT_ACCEPTABLE="Not Acceptable",d.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",d.REQUEST_TIMEOUT="Request Timeout",d.CONFLICT="Conflict",d.GONE="Gone",d.LENGTH_REQUIRED="Length Required",d.PRECONDITION_FAILED="Precondition Failed",d.PAYLOAD_TOO_LARGE="Payload Too Large",d.URI_TOO_LONG="URI Too Long",d.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",d.RANGE_NOT_SATISFIABLE="Range Not Satisfiable",d.EXPECTATION_FAILED="Expectation Failed",d.I_M_A_TEAPOT="I'm a Teapot",d.MISDIRECTED_REQUEST="Misdirected Request",d.UNPROCESSABLE_ENTITY="Unprocessable Entity",d.LOCKED="Locked",d.FAILED_DEPENDENCY="Failed Dependency",d.UPGRADE_REQUIRED="Upgrade Required",d.PRECONDITION_REQUIRED="Precondition Required",d.TOO_MANY_REQUESTS="Too Many Requests",d.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",d.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft)",d.NO_RESPONSE_NGINX="No Response (Nginx)",d.RETRY_WITH_MICROSOFT="Retry With (Microsoft)",d.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft)",d.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",d.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx)",d.CERT_ERROR_NGINX="Cert Error (Nginx)",d.NO_CERT_NGINX="No Cert (Nginx)",d.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx)",d.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri)",d.TOKEN_REQUIRED_ESRI="Token required (Esri)",d.INTERNAL_SERVER_ERROR="Internal Server Error",d.NOT_IMPLEMENTED="Not Implemented",d.BAD_GATEWAY="Bad Gateway",d.SERVICE_UNAVAILABLE="Service Unavailable",d.GATEWAY_TIMEOUT="Gateway Timeout",d.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",d.VARIANT_ALSO_NEGOTIATES="Variant Also Negotiates",d.INSUFFICIENT_STORAGE="Insufficient Storage",d.LOOP_DETECTED="Loop Detected",d.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded",d.NOT_EXTENDED="Not Extended",d.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",d.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE="Unknown Error (Microsoft / CloudFlare)",d.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare)",d.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare)",d.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare)",d.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare)",d.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare)",d.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare)",d.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare)",exports.getStatusCode=function(e){const t=s[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status text.`);return t},exports.getStatusInfo=t,exports.getStatusMessage=function(e){const r=t(e);return`${r.code} ${r.message}`},exports.getStatusText=function(e){const t=r[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status code.`);return t},exports.isCodeOrTextValid=e,exports.isStatusSuccessful=function(e){try{return t(e).success}catch(e){return!1}},exports.statusCodeToStatusDescriptionMap=o,exports.statusCodeToStatusTextMap=r,exports.statusTextToStatusCodeMap=s,exports.statusTextToStatusDescriptionMap=i; | ||
"use strict";function e(e){return e in r||e in s}function t(t){if(!e(t))throw new Error(`${t} is not a known HTTP status code or status text.`);const[r,n]=[s[t]||t,o[t]||i[t]];return{code:r,message:n,success:r<400}}const r={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Switch proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",440:"Login Timeout (Microsoft)",444:"No Response (Nginx)",449:"Retry With (Microsoft)",450:"Blocked by Windows Parental Controls (Microsoft)",451:"Unavailable For Legal Reasons",494:"Request Header Too Large (Nginx)",495:"Cert Error (Nginx)",496:"No Cert (Nginx)",497:"HTTP to HTTPS (Nginx)",498:"Token expired/invalid (Esri)",499:"Token required (Esri)",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required",520:"Unknown Error (Microsoft / CloudFlare)",521:"Web Server Is Down (CloudFlare)",522:"Connection Timed Out (CloudFlare)",523:"Origin Is Unreachable (CloudFlare)",524:"A Timeout Occurred (CloudFlare)",525:"SSL Handshake Failed (CloudFlare)",526:"Invalid SSL Certificate (CloudFlare)",527:"Railgun Error (CloudFlare)"},o={100:"Continue:The server has received the request headers, and that the client should proceed to send the request body.",101:"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",102:"Processing:The server has received and is processing the request, but no response is available yet.",200:"OK:The standard response for successful HTTP requests.",201:"Created:The request has been fulfilled and a new resource has been created.",202:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",203:"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",204:"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",205:"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",206:"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",207:"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",208:"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",226:"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",300:"Multiple choices:There are multiple options that the client may follow.",301:"Moved permanently:The resource has been moved and all further requests should reference its new URI.",302:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',303:"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",304:"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",305:"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",306:"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",307:"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",308:"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",400:"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",401:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",402:"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",403:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",404:"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",405:"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",406:"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",407:"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",408:"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",409:"Conflict:The request cannot be completed due to a conflict in the request parameters.",410:"Gone:The resource is no longer available at the requested URI and no redirection will be given.",411:"Length required:The request did not specify the length of its content as required by the resource.",412:"Precondition failed:The server does not meet one of the preconditions specified by the client.",413:"Request entity too large:The request is larger than what the server is able to process.",414:"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",415:"Unsupported media type:The client provided data with a media type that the server does not support.",416:"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",417:"Expectation failed:The server cannot meet the requirements of the Expect request-header field.",418:"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",421:"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",422:"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",423:"Locked:The requested resource was found but has been locked and will not be returned.",424:"Failed dependency:The request failed due to a failure of a previous request.",426:"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",428:"Precondition required:The origin server requires the request to be conditional.",429:'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',431:"Request header fields too large:The server is unwilling to process the request because its header fields are too large.",440:"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",444:"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",449:"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",450:"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",451:"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",494:"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",495:"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",496:"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",497:"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",498:"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",499:"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",500:"Internal server error:A generic status for an error in the server itself.",501:"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",502:"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",503:"Service unavailable:The server is down and is not accepting requests.",504:"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",505:"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",506:"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",507:"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",508:"Loop detected:The server detected an infinite loop in the request.",509:"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",510:"Not extended:Further extensions to the request are necessary for it to be fulfilled.",511:"Network authentication required:The client must authenticate with the network before sending requests.",520:'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',521:"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",522:"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",523:"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",524:"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",525:"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",526:"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",527:"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."},s={Continue:100,"Switching Protocols":101,Processing:102,OK:200,Created:201,Accepted:202,"Non-Authoritative Information":203,"No Content":204,"Reset Content":205,"Partial Content":206,"Multi-Status":207,"Already Reported":208,"IM Used":226,"Multiple Choices":300,"Moved Permanently":301,Found:302,"See Other":303,"Not Modified":304,"Use Proxy":305,"Switch proxy":306,"Temporary Redirect":307,"Permanent Redirect":308,"Bad Request":400,Unauthorized:401,"Payment Required":402,Forbidden:403,"Not Found":404,"Method Not Allowed":405,"Not Acceptable":406,"Proxy Authentication Required":407,"Request Timeout":408,Conflict:409,Gone:410,"Length Required":411,"Precondition Failed":412,"Payload Too Large":413,"URI Too Long":414,"Unsupported Media Type":415,"Range Not Satisfiable":416,"Expectation Failed":417,"I'm a Teapot":418,"Misdirected Request":421,"Unprocessable Entity":422,Locked:423,"Failed Dependency":424,"Upgrade Required":426,"Precondition Required":428,"Too Many Requests":429,"Request Header Fields Too Large":431,"Login Timeout (Microsoft)":440,"No Response (Nginx)":444,"Retry With (Microsoft)":449,"Blocked by Windows Parental Controls (Microsoft)":450,"Unavailable For Legal Reasons":451,"Request Header Too Large (Nginx)":494,"Cert Error (Nginx)":495,"No Cert (Nginx)":496,"HTTP to HTTPS (Nginx)":497,"Token expired/invalid (Esri)":498,"Token required (Esri)":499,"Internal Server Error":500,"Not Implemented":501,"Bad Gateway":502,"Service Unavailable":503,"Gateway Timeout":504,"HTTP Version Not Supported":505,"Variant Also Negotiates":506,"Insufficient Storage":507,"Loop Detected":508,"Bandwidth Limit Exceeded":509,"Not Extended":510,"Network Authentication Required":511,"Unknown Error (Microsoft / CloudFlare)":520,"Web Server Is Down (CloudFlare)":521,"Connection Timed Out (CloudFlare)":522,"Origin Is Unreachable (CloudFlare)":523,"A Timeout Occurred (CloudFlare)":524,"SSL Handshake Failed (CloudFlare)":525,"Invalid SSL Certificate (CloudFlare)":526,"Railgun Error (CloudFlare)":527},i={Continue:"Continue:The server has received the request headers, and that the client should proceed to send the request body.","Switching Protocols":"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",Processing:"Processing:The server has received and is processing the request, but no response is available yet.",OK:"OK:The standard response for successful HTTP requests.",Created:"Created:The request has been fulfilled and a new resource has been created.",Accepted:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.","Non-Authoritative Information":"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.","No Content":"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.","Reset Content":"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.","Partial Content":"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.","Multi-Status":"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","Already Reported":"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.","IM Used":"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","Multiple Choices":"Multiple choices:There are multiple options that the client may follow.","Moved Permanently":"Moved permanently:The resource has been moved and all further requests should reference its new URI.",Found:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',"See Other":"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.","Not Modified":"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.","Use Proxy":"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.","Switch proxy":"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.","Temporary Redirect":"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.","Permanent Redirect":"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests","Bad Request":"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",Unauthorized:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.","Payment Required":"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",Forbidden:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.","Not Found":"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.","Method Not Allowed":"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.","Not Acceptable":"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.","Proxy Authentication Required":"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.","Request Timeout":"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",Conflict:"Conflict:The request cannot be completed due to a conflict in the request parameters.",Gone:"Gone:The resource is no longer available at the requested URI and no redirection will be given.","Length Required":"Length required:The request did not specify the length of its content as required by the resource.","Precondition Failed":"Precondition failed:The server does not meet one of the preconditions specified by the client.","Payload Too Large":"Request entity too large:The request is larger than what the server is able to process.","URI Too Long":"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.","Unsupported Media Type":"Unsupported media type:The client provided data with a media type that the server does not support.","Range Not Satisfiable":"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.","Expectation Failed":"Expectation failed:The server cannot meet the requirements of the Expect request-header field.","I'm a Teapot":"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.","Misdirected Request":"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.","Unprocessable Entity":"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",Locked:"Locked:The requested resource was found but has been locked and will not be returned.","Failed Dependency":"Failed dependency:The request failed due to a failure of a previous request.","Upgrade Required":"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.","Precondition Required":"Precondition required:The origin server requires the request to be conditional.","Too Many Requests":'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',"Request Header Fields Too Large":"Request header fields too large:The server is unwilling to process the request because its header fields are too large.","Login Timeout (Microsoft)":"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.","No Response (Nginx)":"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).","Retry With (Microsoft)":"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.","Blocked by Windows Parental Controls (Microsoft)":"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.","Unavailable For Legal Reasons":"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.","Request Header Too Large (Nginx)":"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).","Cert Error (Nginx)":"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.","No Cert (Nginx)":"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.","HTTP to HTTPS (Nginx)":"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.","Token expired/invalid (Esri)":"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.","Token required (Esri)":"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).","Internal Server Error":"Internal server error:A generic status for an error in the server itself.","Not Implemented":"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.","Bad Gateway":"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.","Service Unavailable":"Service unavailable:The server is down and is not accepting requests.","Gateway Timeout":"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.","HTTP Version Not Supported":"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.","Variant Also Negotiates":"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.","Insufficient Storage":"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.","Loop Detected":"Loop detected:The server detected an infinite loop in the request.","Bandwidth Limit Exceeded":"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.","Not Extended":"Not extended:Further extensions to the request are necessary for it to be fulfilled.","Network Authentication Required":"Network authentication required:The client must authenticate with the network before sending requests.","Unknown Error (Microsoft / CloudFlare)":'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',"Web Server Is Down (CloudFlare)":"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.","Connection Timed Out (CloudFlare)":"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.","Origin Is Unreachable (CloudFlare)":"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.","A Timeout Occurred (CloudFlare)":"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","SSL Handshake Failed (CloudFlare)":"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.","Invalid SSL Certificate (CloudFlare)":"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.","Railgun Error (CloudFlare)":"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."};var n,a,d;exports.HttpStatusCode=void 0,(n=exports.HttpStatusCode||(exports.HttpStatusCode={}))[n.CONTINUE=100]="CONTINUE",n[n.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",n[n.PROCESSING=102]="PROCESSING",n[n.OK=200]="OK",n[n.CREATED=201]="CREATED",n[n.ACCEPTED=202]="ACCEPTED",n[n.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",n[n.NO_CONTENT=204]="NO_CONTENT",n[n.RESET_CONTENT=205]="RESET_CONTENT",n[n.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",n[n.MULTI_STATUS=207]="MULTI_STATUS",n[n.ALREADY_REPORTED=208]="ALREADY_REPORTED",n[n.IM_USED=226]="IM_USED",n[n.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",n[n.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",n[n.FOUND=302]="FOUND",n[n.SEE_OTHER=303]="SEE_OTHER",n[n.NOT_MODIFIED=304]="NOT_MODIFIED",n[n.USE_PROXY=305]="USE_PROXY",n[n.SWITCH_PROXY=306]="SWITCH_PROXY",n[n.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",n[n.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.UNAUTHORIZED=401]="UNAUTHORIZED",n[n.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",n[n.FORBIDDEN=403]="FORBIDDEN",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",n[n.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",n[n.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",n[n.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",n[n.CONFLICT=409]="CONFLICT",n[n.GONE=410]="GONE",n[n.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",n[n.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",n[n.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",n[n.URI_TOO_LONG=414]="URI_TOO_LONG",n[n.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",n[n.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",n[n.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",n[n.I_M_A_TEAPOT=418]="I_M_A_TEAPOT",n[n.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",n[n.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",n[n.LOCKED=423]="LOCKED",n[n.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",n[n.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",n[n.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",n[n.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",n[n.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",n[n.LOGIN_TIMEOUT_MICROSOFT=440]="LOGIN_TIMEOUT_MICROSOFT",n[n.NO_RESPONSE_NGINX=444]="NO_RESPONSE_NGINX",n[n.RETRY_WITH_MICROSOFT=449]="RETRY_WITH_MICROSOFT",n[n.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT=450]="BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT",n[n.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",n[n.REQUEST_HEADER_TOO_LARGE_NGINX=494]="REQUEST_HEADER_TOO_LARGE_NGINX",n[n.CERT_ERROR_NGINX=495]="CERT_ERROR_NGINX",n[n.NO_CERT_NGINX=496]="NO_CERT_NGINX",n[n.HTTP_TO_HTTPS_NGINX=497]="HTTP_TO_HTTPS_NGINX",n[n.TOKEN_EXPIRED_INVALID_ESRI=498]="TOKEN_EXPIRED_INVALID_ESRI",n[n.TOKEN_REQUIRED_ESRI=499]="TOKEN_REQUIRED_ESRI",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n[n.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",n[n.BAD_GATEWAY=502]="BAD_GATEWAY",n[n.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",n[n.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",n[n.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",n[n.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",n[n.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",n[n.LOOP_DETECTED=508]="LOOP_DETECTED",n[n.BANDWIDTH_LIMIT_EXCEEDED=509]="BANDWIDTH_LIMIT_EXCEEDED",n[n.NOT_EXTENDED=510]="NOT_EXTENDED",n[n.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",n[n.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE=520]="UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE",n[n.WEB_SERVER_IS_DOWN_CLOUD_FLARE=521]="WEB_SERVER_IS_DOWN_CLOUD_FLARE",n[n.CONNECTION_TIMED_OUT_CLOUD_FLARE=522]="CONNECTION_TIMED_OUT_CLOUD_FLARE",n[n.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE=523]="ORIGIN_IS_UNREACHABLE_CLOUD_FLARE",n[n.A_TIMEOUT_OCCURRED_CLOUD_FLARE=524]="A_TIMEOUT_OCCURRED_CLOUD_FLARE",n[n.SSL_HANDSHAKE_FAILED_CLOUD_FLARE=525]="SSL_HANDSHAKE_FAILED_CLOUD_FLARE",n[n.INVALID_SSL_CERTIFICATE_CLOUD_FLARE=526]="INVALID_SSL_CERTIFICATE_CLOUD_FLARE",n[n.RAILGUN_ERROR_CLOUD_FLARE=527]="RAILGUN_ERROR_CLOUD_FLARE",exports.HttpStatusDescription=void 0,(a=exports.HttpStatusDescription||(exports.HttpStatusDescription={})).CONTINUE="Continue:The server has received the request headers, and that the client should proceed to send the request body.",a.SWITCHING_PROTOCOLS="Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",a.PROCESSING="Processing:The server has received and is processing the request, but no response is available yet.",a.OK="OK:The standard response for successful HTTP requests.",a.CREATED="Created:The request has been fulfilled and a new resource has been created.",a.ACCEPTED="Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",a.NON_AUTHORITATIVE_INFORMATION="Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",a.NO_CONTENT="No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",a.RESET_CONTENT="Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",a.PARTIAL_CONTENT="Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",a.MULTI_STATUS="Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",a.ALREADY_REPORTED="Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",a.IM_USED="IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",a.MULTIPLE_CHOICES="Multiple choices:There are multiple options that the client may follow.",a.MOVED_PERMANENTLY="Moved permanently:The resource has been moved and all further requests should reference its new URI.",a.FOUND='Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',a.SEE_OTHER="See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",a.NOT_MODIFIED="Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",a.USE_PROXY="Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",a.SWITCH_PROXY="Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",a.TEMPORARY_REDIRECT="Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",a.PERMANENT_REDIRECT="Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",a.BAD_REQUEST="Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",a.UNAUTHORIZED="Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",a.PAYMENT_REQUIRED="Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",a.FORBIDDEN="Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",a.NOT_FOUND="Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",a.METHOD_NOT_ALLOWED="Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",a.NOT_ACCEPTABLE="Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",a.PROXY_AUTHENTICATION_REQUIRED="Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",a.REQUEST_TIMEOUT="Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",a.CONFLICT="Conflict:The request cannot be completed due to a conflict in the request parameters.",a.GONE="Gone:The resource is no longer available at the requested URI and no redirection will be given.",a.LENGTH_REQUIRED="Length required:The request did not specify the length of its content as required by the resource.",a.PRECONDITION_FAILED="Precondition failed:The server does not meet one of the preconditions specified by the client.",a.PAYLOAD_TOO_LARGE="Request entity too large:The request is larger than what the server is able to process.",a.URI_TOO_LONG="Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",a.UNSUPPORTED_MEDIA_TYPE="Unsupported media type:The client provided data with a media type that the server does not support.",a.RANGE_NOT_SATISFIABLE="Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",a.EXPECTATION_FAILED="Expectation failed:The server cannot meet the requirements of the Expect request-header field.",a.I_M_A_TEAPOT="I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",a.MISDIRECTED_REQUEST="Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",a.UNPROCESSABLE_ENTITY="Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",a.LOCKED="Locked:The requested resource was found but has been locked and will not be returned.",a.FAILED_DEPENDENCY="Failed dependency:The request failed due to a failure of a previous request.",a.UPGRADE_REQUIRED="Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",a.PRECONDITION_REQUIRED="Precondition required:The origin server requires the request to be conditional.",a.TOO_MANY_REQUESTS='Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',a.REQUEST_HEADER_FIELDS_TOO_LARGE="Request header fields too large:The server is unwilling to process the request because its header fields are too large.",a.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",a.NO_RESPONSE_NGINX="No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",a.RETRY_WITH_MICROSOFT="Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",a.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",a.UNAVAILABLE_FOR_LEGAL_REASONS="Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",a.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",a.CERT_ERROR_NGINX="Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",a.NO_CERT_NGINX="No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",a.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",a.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",a.TOKEN_REQUIRED_ESRI="Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",a.INTERNAL_SERVER_ERROR="Internal server error:A generic status for an error in the server itself.",a.NOT_IMPLEMENTED="Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",a.BAD_GATEWAY="Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",a.SERVICE_UNAVAILABLE="Service unavailable:The server is down and is not accepting requests.",a.GATEWAY_TIMEOUT="Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",a.HTTP_VERSION_NOT_SUPPORTED="HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",a.VARIANT_ALSO_NEGOTIATES="Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",a.INSUFFICIENT_STORAGE="Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",a.LOOP_DETECTED="Loop detected:The server detected an infinite loop in the request.",a.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",a.NOT_EXTENDED="Not extended:Further extensions to the request are necessary for it to be fulfilled.",a.NETWORK_AUTHENTICATION_REQUIRED="Network authentication required:The client must authenticate with the network before sending requests.",a.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE='Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',a.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",a.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",a.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",a.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",a.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",a.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",a.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established.",exports.HttpStatusText=void 0,(d=exports.HttpStatusText||(exports.HttpStatusText={})).CONTINUE="Continue",d.SWITCHING_PROTOCOLS="Switching Protocols",d.PROCESSING="Processing",d.OK="OK",d.CREATED="Created",d.ACCEPTED="Accepted",d.NON_AUTHORITATIVE_INFORMATION="Non-Authoritative Information",d.NO_CONTENT="No Content",d.RESET_CONTENT="Reset Content",d.PARTIAL_CONTENT="Partial Content",d.MULTI_STATUS="Multi-Status",d.ALREADY_REPORTED="Already Reported",d.IM_USED="IM Used",d.MULTIPLE_CHOICES="Multiple Choices",d.MOVED_PERMANENTLY="Moved Permanently",d.FOUND="Found",d.SEE_OTHER="See Other",d.NOT_MODIFIED="Not Modified",d.USE_PROXY="Use Proxy",d.SWITCH_PROXY="Switch proxy",d.TEMPORARY_REDIRECT="Temporary Redirect",d.PERMANENT_REDIRECT="Permanent Redirect",d.BAD_REQUEST="Bad Request",d.UNAUTHORIZED="Unauthorized",d.PAYMENT_REQUIRED="Payment Required",d.FORBIDDEN="Forbidden",d.NOT_FOUND="Not Found",d.METHOD_NOT_ALLOWED="Method Not Allowed",d.NOT_ACCEPTABLE="Not Acceptable",d.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",d.REQUEST_TIMEOUT="Request Timeout",d.CONFLICT="Conflict",d.GONE="Gone",d.LENGTH_REQUIRED="Length Required",d.PRECONDITION_FAILED="Precondition Failed",d.PAYLOAD_TOO_LARGE="Payload Too Large",d.URI_TOO_LONG="URI Too Long",d.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",d.RANGE_NOT_SATISFIABLE="Range Not Satisfiable",d.EXPECTATION_FAILED="Expectation Failed",d.I_M_A_TEAPOT="I'm a Teapot",d.MISDIRECTED_REQUEST="Misdirected Request",d.UNPROCESSABLE_ENTITY="Unprocessable Entity",d.LOCKED="Locked",d.FAILED_DEPENDENCY="Failed Dependency",d.UPGRADE_REQUIRED="Upgrade Required",d.PRECONDITION_REQUIRED="Precondition Required",d.TOO_MANY_REQUESTS="Too Many Requests",d.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",d.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft)",d.NO_RESPONSE_NGINX="No Response (Nginx)",d.RETRY_WITH_MICROSOFT="Retry With (Microsoft)",d.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft)",d.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",d.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx)",d.CERT_ERROR_NGINX="Cert Error (Nginx)",d.NO_CERT_NGINX="No Cert (Nginx)",d.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx)",d.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri)",d.TOKEN_REQUIRED_ESRI="Token required (Esri)",d.INTERNAL_SERVER_ERROR="Internal Server Error",d.NOT_IMPLEMENTED="Not Implemented",d.BAD_GATEWAY="Bad Gateway",d.SERVICE_UNAVAILABLE="Service Unavailable",d.GATEWAY_TIMEOUT="Gateway Timeout",d.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",d.VARIANT_ALSO_NEGOTIATES="Variant Also Negotiates",d.INSUFFICIENT_STORAGE="Insufficient Storage",d.LOOP_DETECTED="Loop Detected",d.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded",d.NOT_EXTENDED="Not Extended",d.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",d.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE="Unknown Error (Microsoft / CloudFlare)",d.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare)",d.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare)",d.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare)",d.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare)",d.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare)",d.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare)",d.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare)",exports.getSimpleStatusMessage=function(e){const r=t(e);return`${r.code} ${r.message.split(":")[0]}`},exports.getStatusCode=function(e){const t=s[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status text.`);return t},exports.getStatusInfo=t,exports.getStatusMessage=function(e){const r=t(e);return`${r.code} ${r.message}`},exports.getStatusText=function(e){const t=r[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status code.`);return t},exports.isCodeOrTextValid=e,exports.isStatusSuccessful=function(e){try{return t(e).success}catch(e){return!1}},exports.statusCodeToStatusDescriptionMap=o,exports.statusCodeToStatusTextMap=r,exports.statusTextToStatusCodeMap=s,exports.statusTextToStatusDescriptionMap=i; |
@@ -1,1 +0,1 @@ | ||
function e(e){return e in s||e in d}function t(t){if(!e(t))throw new Error(`${t} is not a known HTTP status code or status text.`);const[r,o]=[d[t]||t,a[t]||u[t]];return{code:r,message:o,success:r<400}}function r(e){try{return t(e).success}catch(e){return!1}}function o(e){const r=t(e);return`${r.code} ${r.message}`}function i(e){const t=d[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status text.`);return t}function n(e){const t=s[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status code.`);return t}const s={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Switch proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",440:"Login Timeout (Microsoft)",444:"No Response (Nginx)",449:"Retry With (Microsoft)",450:"Blocked by Windows Parental Controls (Microsoft)",451:"Unavailable For Legal Reasons",494:"Request Header Too Large (Nginx)",495:"Cert Error (Nginx)",496:"No Cert (Nginx)",497:"HTTP to HTTPS (Nginx)",498:"Token expired/invalid (Esri)",499:"Token required (Esri)",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required",520:"Unknown Error (Microsoft / CloudFlare)",521:"Web Server Is Down (CloudFlare)",522:"Connection Timed Out (CloudFlare)",523:"Origin Is Unreachable (CloudFlare)",524:"A Timeout Occurred (CloudFlare)",525:"SSL Handshake Failed (CloudFlare)",526:"Invalid SSL Certificate (CloudFlare)",527:"Railgun Error (CloudFlare)"},a={100:"Continue:The server has received the request headers, and that the client should proceed to send the request body.",101:"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",102:"Processing:The server has received and is processing the request, but no response is available yet.",200:"OK:The standard response for successful HTTP requests.",201:"Created:The request has been fulfilled and a new resource has been created.",202:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",203:"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",204:"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",205:"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",206:"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",207:"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",208:"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",226:"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",300:"Multiple choices:There are multiple options that the client may follow.",301:"Moved permanently:The resource has been moved and all further requests should reference its new URI.",302:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',303:"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",304:"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",305:"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",306:"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",307:"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",308:"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",400:"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",401:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",402:"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",403:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",404:"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",405:"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",406:"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",407:"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",408:"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",409:"Conflict:The request cannot be completed due to a conflict in the request parameters.",410:"Gone:The resource is no longer available at the requested URI and no redirection will be given.",411:"Length required:The request did not specify the length of its content as required by the resource.",412:"Precondition failed:The server does not meet one of the preconditions specified by the client.",413:"Request entity too large:The request is larger than what the server is able to process.",414:"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",415:"Unsupported media type:The client provided data with a media type that the server does not support.",416:"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",417:"Expectation failed:The server cannot meet the requirements of the Expect request-header field.",418:"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",421:"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",422:"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",423:"Locked:The requested resource was found but has been locked and will not be returned.",424:"Failed dependency:The request failed due to a failure of a previous request.",426:"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",428:"Precondition required:The origin server requires the request to be conditional.",429:'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',431:"Request header fields too large:The server is unwilling to process the request because its header fields are too large.",440:"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",444:"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",449:"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",450:"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",451:"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",494:"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",495:"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",496:"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",497:"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",498:"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",499:"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",500:"Internal server error:A generic status for an error in the server itself.",501:"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",502:"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",503:"Service unavailable:The server is down and is not accepting requests.",504:"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",505:"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",506:"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",507:"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",508:"Loop detected:The server detected an infinite loop in the request.",509:"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",510:"Not extended:Further extensions to the request are necessary for it to be fulfilled.",511:"Network authentication required:The client must authenticate with the network before sending requests.",520:'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',521:"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",522:"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",523:"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",524:"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",525:"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",526:"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",527:"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."},d={Continue:100,"Switching Protocols":101,Processing:102,OK:200,Created:201,Accepted:202,"Non-Authoritative Information":203,"No Content":204,"Reset Content":205,"Partial Content":206,"Multi-Status":207,"Already Reported":208,"IM Used":226,"Multiple Choices":300,"Moved Permanently":301,Found:302,"See Other":303,"Not Modified":304,"Use Proxy":305,"Switch proxy":306,"Temporary Redirect":307,"Permanent Redirect":308,"Bad Request":400,Unauthorized:401,"Payment Required":402,Forbidden:403,"Not Found":404,"Method Not Allowed":405,"Not Acceptable":406,"Proxy Authentication Required":407,"Request Timeout":408,Conflict:409,Gone:410,"Length Required":411,"Precondition Failed":412,"Payload Too Large":413,"URI Too Long":414,"Unsupported Media Type":415,"Range Not Satisfiable":416,"Expectation Failed":417,"I'm a Teapot":418,"Misdirected Request":421,"Unprocessable Entity":422,Locked:423,"Failed Dependency":424,"Upgrade Required":426,"Precondition Required":428,"Too Many Requests":429,"Request Header Fields Too Large":431,"Login Timeout (Microsoft)":440,"No Response (Nginx)":444,"Retry With (Microsoft)":449,"Blocked by Windows Parental Controls (Microsoft)":450,"Unavailable For Legal Reasons":451,"Request Header Too Large (Nginx)":494,"Cert Error (Nginx)":495,"No Cert (Nginx)":496,"HTTP to HTTPS (Nginx)":497,"Token expired/invalid (Esri)":498,"Token required (Esri)":499,"Internal Server Error":500,"Not Implemented":501,"Bad Gateway":502,"Service Unavailable":503,"Gateway Timeout":504,"HTTP Version Not Supported":505,"Variant Also Negotiates":506,"Insufficient Storage":507,"Loop Detected":508,"Bandwidth Limit Exceeded":509,"Not Extended":510,"Network Authentication Required":511,"Unknown Error (Microsoft / CloudFlare)":520,"Web Server Is Down (CloudFlare)":521,"Connection Timed Out (CloudFlare)":522,"Origin Is Unreachable (CloudFlare)":523,"A Timeout Occurred (CloudFlare)":524,"SSL Handshake Failed (CloudFlare)":525,"Invalid SSL Certificate (CloudFlare)":526,"Railgun Error (CloudFlare)":527},u={Continue:"Continue:The server has received the request headers, and that the client should proceed to send the request body.","Switching Protocols":"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",Processing:"Processing:The server has received and is processing the request, but no response is available yet.",OK:"OK:The standard response for successful HTTP requests.",Created:"Created:The request has been fulfilled and a new resource has been created.",Accepted:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.","Non-Authoritative Information":"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.","No Content":"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.","Reset Content":"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.","Partial Content":"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.","Multi-Status":"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","Already Reported":"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.","IM Used":"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","Multiple Choices":"Multiple choices:There are multiple options that the client may follow.","Moved Permanently":"Moved permanently:The resource has been moved and all further requests should reference its new URI.",Found:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',"See Other":"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.","Not Modified":"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.","Use Proxy":"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.","Switch proxy":"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.","Temporary Redirect":"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.","Permanent Redirect":"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests","Bad Request":"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",Unauthorized:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.","Payment Required":"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",Forbidden:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.","Not Found":"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.","Method Not Allowed":"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.","Not Acceptable":"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.","Proxy Authentication Required":"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.","Request Timeout":"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",Conflict:"Conflict:The request cannot be completed due to a conflict in the request parameters.",Gone:"Gone:The resource is no longer available at the requested URI and no redirection will be given.","Length Required":"Length required:The request did not specify the length of its content as required by the resource.","Precondition Failed":"Precondition failed:The server does not meet one of the preconditions specified by the client.","Payload Too Large":"Request entity too large:The request is larger than what the server is able to process.","URI Too Long":"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.","Unsupported Media Type":"Unsupported media type:The client provided data with a media type that the server does not support.","Range Not Satisfiable":"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.","Expectation Failed":"Expectation failed:The server cannot meet the requirements of the Expect request-header field.","I'm a Teapot":"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.","Misdirected Request":"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.","Unprocessable Entity":"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",Locked:"Locked:The requested resource was found but has been locked and will not be returned.","Failed Dependency":"Failed dependency:The request failed due to a failure of a previous request.","Upgrade Required":"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.","Precondition Required":"Precondition required:The origin server requires the request to be conditional.","Too Many Requests":'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',"Request Header Fields Too Large":"Request header fields too large:The server is unwilling to process the request because its header fields are too large.","Login Timeout (Microsoft)":"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.","No Response (Nginx)":"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).","Retry With (Microsoft)":"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.","Blocked by Windows Parental Controls (Microsoft)":"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.","Unavailable For Legal Reasons":"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.","Request Header Too Large (Nginx)":"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).","Cert Error (Nginx)":"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.","No Cert (Nginx)":"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.","HTTP to HTTPS (Nginx)":"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.","Token expired/invalid (Esri)":"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.","Token required (Esri)":"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).","Internal Server Error":"Internal server error:A generic status for an error in the server itself.","Not Implemented":"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.","Bad Gateway":"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.","Service Unavailable":"Service unavailable:The server is down and is not accepting requests.","Gateway Timeout":"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.","HTTP Version Not Supported":"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.","Variant Also Negotiates":"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.","Insufficient Storage":"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.","Loop Detected":"Loop detected:The server detected an infinite loop in the request.","Bandwidth Limit Exceeded":"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.","Not Extended":"Not extended:Further extensions to the request are necessary for it to be fulfilled.","Network Authentication Required":"Network authentication required:The client must authenticate with the network before sending requests.","Unknown Error (Microsoft / CloudFlare)":'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',"Web Server Is Down (CloudFlare)":"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.","Connection Timed Out (CloudFlare)":"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.","Origin Is Unreachable (CloudFlare)":"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.","A Timeout Occurred (CloudFlare)":"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","SSL Handshake Failed (CloudFlare)":"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.","Invalid SSL Certificate (CloudFlare)":"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.","Railgun Error (CloudFlare)":"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."};var c,h,l;!function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.ALREADY_REPORTED=208]="ALREADY_REPORTED",e[e.IM_USED=226]="IM_USED",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.FOUND=302]="FOUND",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.SWITCH_PROXY=306]="SWITCH_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",e[e.URI_TOO_LONG=414]="URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.I_M_A_TEAPOT=418]="I_M_A_TEAPOT",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.LOGIN_TIMEOUT_MICROSOFT=440]="LOGIN_TIMEOUT_MICROSOFT",e[e.NO_RESPONSE_NGINX=444]="NO_RESPONSE_NGINX",e[e.RETRY_WITH_MICROSOFT=449]="RETRY_WITH_MICROSOFT",e[e.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT=450]="BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.REQUEST_HEADER_TOO_LARGE_NGINX=494]="REQUEST_HEADER_TOO_LARGE_NGINX",e[e.CERT_ERROR_NGINX=495]="CERT_ERROR_NGINX",e[e.NO_CERT_NGINX=496]="NO_CERT_NGINX",e[e.HTTP_TO_HTTPS_NGINX=497]="HTTP_TO_HTTPS_NGINX",e[e.TOKEN_EXPIRED_INVALID_ESRI=498]="TOKEN_EXPIRED_INVALID_ESRI",e[e.TOKEN_REQUIRED_ESRI=499]="TOKEN_REQUIRED_ESRI",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.LOOP_DETECTED=508]="LOOP_DETECTED",e[e.BANDWIDTH_LIMIT_EXCEEDED=509]="BANDWIDTH_LIMIT_EXCEEDED",e[e.NOT_EXTENDED=510]="NOT_EXTENDED",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE=520]="UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE",e[e.WEB_SERVER_IS_DOWN_CLOUD_FLARE=521]="WEB_SERVER_IS_DOWN_CLOUD_FLARE",e[e.CONNECTION_TIMED_OUT_CLOUD_FLARE=522]="CONNECTION_TIMED_OUT_CLOUD_FLARE",e[e.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE=523]="ORIGIN_IS_UNREACHABLE_CLOUD_FLARE",e[e.A_TIMEOUT_OCCURRED_CLOUD_FLARE=524]="A_TIMEOUT_OCCURRED_CLOUD_FLARE",e[e.SSL_HANDSHAKE_FAILED_CLOUD_FLARE=525]="SSL_HANDSHAKE_FAILED_CLOUD_FLARE",e[e.INVALID_SSL_CERTIFICATE_CLOUD_FLARE=526]="INVALID_SSL_CERTIFICATE_CLOUD_FLARE",e[e.RAILGUN_ERROR_CLOUD_FLARE=527]="RAILGUN_ERROR_CLOUD_FLARE"}(c||(c={})),function(e){e.CONTINUE="Continue:The server has received the request headers, and that the client should proceed to send the request body.",e.SWITCHING_PROTOCOLS="Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",e.PROCESSING="Processing:The server has received and is processing the request, but no response is available yet.",e.OK="OK:The standard response for successful HTTP requests.",e.CREATED="Created:The request has been fulfilled and a new resource has been created.",e.ACCEPTED="Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",e.NON_AUTHORITATIVE_INFORMATION="Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",e.NO_CONTENT="No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",e.RESET_CONTENT="Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",e.PARTIAL_CONTENT="Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",e.MULTI_STATUS="Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",e.ALREADY_REPORTED="Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",e.IM_USED="IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",e.MULTIPLE_CHOICES="Multiple choices:There are multiple options that the client may follow.",e.MOVED_PERMANENTLY="Moved permanently:The resource has been moved and all further requests should reference its new URI.",e.FOUND='Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',e.SEE_OTHER="See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",e.NOT_MODIFIED="Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",e.USE_PROXY="Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",e.SWITCH_PROXY="Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",e.TEMPORARY_REDIRECT="Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",e.PERMANENT_REDIRECT="Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",e.BAD_REQUEST="Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",e.UNAUTHORIZED="Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",e.PAYMENT_REQUIRED="Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",e.FORBIDDEN="Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",e.NOT_FOUND="Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",e.METHOD_NOT_ALLOWED="Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",e.NOT_ACCEPTABLE="Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",e.PROXY_AUTHENTICATION_REQUIRED="Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",e.REQUEST_TIMEOUT="Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",e.CONFLICT="Conflict:The request cannot be completed due to a conflict in the request parameters.",e.GONE="Gone:The resource is no longer available at the requested URI and no redirection will be given.",e.LENGTH_REQUIRED="Length required:The request did not specify the length of its content as required by the resource.",e.PRECONDITION_FAILED="Precondition failed:The server does not meet one of the preconditions specified by the client.",e.PAYLOAD_TOO_LARGE="Request entity too large:The request is larger than what the server is able to process.",e.URI_TOO_LONG="Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",e.UNSUPPORTED_MEDIA_TYPE="Unsupported media type:The client provided data with a media type that the server does not support.",e.RANGE_NOT_SATISFIABLE="Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",e.EXPECTATION_FAILED="Expectation failed:The server cannot meet the requirements of the Expect request-header field.",e.I_M_A_TEAPOT="I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",e.MISDIRECTED_REQUEST="Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",e.UNPROCESSABLE_ENTITY="Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",e.LOCKED="Locked:The requested resource was found but has been locked and will not be returned.",e.FAILED_DEPENDENCY="Failed dependency:The request failed due to a failure of a previous request.",e.UPGRADE_REQUIRED="Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",e.PRECONDITION_REQUIRED="Precondition required:The origin server requires the request to be conditional.",e.TOO_MANY_REQUESTS='Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request header fields too large:The server is unwilling to process the request because its header fields are too large.",e.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",e.NO_RESPONSE_NGINX="No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",e.RETRY_WITH_MICROSOFT="Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",e.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",e.UNAVAILABLE_FOR_LEGAL_REASONS="Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",e.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",e.CERT_ERROR_NGINX="Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",e.NO_CERT_NGINX="No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",e.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",e.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",e.TOKEN_REQUIRED_ESRI="Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",e.INTERNAL_SERVER_ERROR="Internal server error:A generic status for an error in the server itself.",e.NOT_IMPLEMENTED="Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",e.BAD_GATEWAY="Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",e.SERVICE_UNAVAILABLE="Service unavailable:The server is down and is not accepting requests.",e.GATEWAY_TIMEOUT="Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",e.HTTP_VERSION_NOT_SUPPORTED="HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",e.VARIANT_ALSO_NEGOTIATES="Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",e.INSUFFICIENT_STORAGE="Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",e.LOOP_DETECTED="Loop detected:The server detected an infinite loop in the request.",e.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",e.NOT_EXTENDED="Not extended:Further extensions to the request are necessary for it to be fulfilled.",e.NETWORK_AUTHENTICATION_REQUIRED="Network authentication required:The client must authenticate with the network before sending requests.",e.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE='Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',e.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",e.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",e.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",e.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",e.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",e.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",e.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."}(h||(h={})),function(e){e.CONTINUE="Continue",e.SWITCHING_PROTOCOLS="Switching Protocols",e.PROCESSING="Processing",e.OK="OK",e.CREATED="Created",e.ACCEPTED="Accepted",e.NON_AUTHORITATIVE_INFORMATION="Non-Authoritative Information",e.NO_CONTENT="No Content",e.RESET_CONTENT="Reset Content",e.PARTIAL_CONTENT="Partial Content",e.MULTI_STATUS="Multi-Status",e.ALREADY_REPORTED="Already Reported",e.IM_USED="IM Used",e.MULTIPLE_CHOICES="Multiple Choices",e.MOVED_PERMANENTLY="Moved Permanently",e.FOUND="Found",e.SEE_OTHER="See Other",e.NOT_MODIFIED="Not Modified",e.USE_PROXY="Use Proxy",e.SWITCH_PROXY="Switch proxy",e.TEMPORARY_REDIRECT="Temporary Redirect",e.PERMANENT_REDIRECT="Permanent Redirect",e.BAD_REQUEST="Bad Request",e.UNAUTHORIZED="Unauthorized",e.PAYMENT_REQUIRED="Payment Required",e.FORBIDDEN="Forbidden",e.NOT_FOUND="Not Found",e.METHOD_NOT_ALLOWED="Method Not Allowed",e.NOT_ACCEPTABLE="Not Acceptable",e.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",e.REQUEST_TIMEOUT="Request Timeout",e.CONFLICT="Conflict",e.GONE="Gone",e.LENGTH_REQUIRED="Length Required",e.PRECONDITION_FAILED="Precondition Failed",e.PAYLOAD_TOO_LARGE="Payload Too Large",e.URI_TOO_LONG="URI Too Long",e.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",e.RANGE_NOT_SATISFIABLE="Range Not Satisfiable",e.EXPECTATION_FAILED="Expectation Failed",e.I_M_A_TEAPOT="I'm a Teapot",e.MISDIRECTED_REQUEST="Misdirected Request",e.UNPROCESSABLE_ENTITY="Unprocessable Entity",e.LOCKED="Locked",e.FAILED_DEPENDENCY="Failed Dependency",e.UPGRADE_REQUIRED="Upgrade Required",e.PRECONDITION_REQUIRED="Precondition Required",e.TOO_MANY_REQUESTS="Too Many Requests",e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",e.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft)",e.NO_RESPONSE_NGINX="No Response (Nginx)",e.RETRY_WITH_MICROSOFT="Retry With (Microsoft)",e.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft)",e.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",e.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx)",e.CERT_ERROR_NGINX="Cert Error (Nginx)",e.NO_CERT_NGINX="No Cert (Nginx)",e.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx)",e.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri)",e.TOKEN_REQUIRED_ESRI="Token required (Esri)",e.INTERNAL_SERVER_ERROR="Internal Server Error",e.NOT_IMPLEMENTED="Not Implemented",e.BAD_GATEWAY="Bad Gateway",e.SERVICE_UNAVAILABLE="Service Unavailable",e.GATEWAY_TIMEOUT="Gateway Timeout",e.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",e.VARIANT_ALSO_NEGOTIATES="Variant Also Negotiates",e.INSUFFICIENT_STORAGE="Insufficient Storage",e.LOOP_DETECTED="Loop Detected",e.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded",e.NOT_EXTENDED="Not Extended",e.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",e.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE="Unknown Error (Microsoft / CloudFlare)",e.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare)",e.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare)",e.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare)",e.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare)",e.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare)",e.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare)",e.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare)"}(l||(l={}));export{c as HttpStatusCode,h as HttpStatusDescription,l as HttpStatusText,i as getStatusCode,t as getStatusInfo,o as getStatusMessage,n as getStatusText,e as isCodeOrTextValid,r as isStatusSuccessful,a as statusCodeToStatusDescriptionMap,s as statusCodeToStatusTextMap,d as statusTextToStatusCodeMap,u as statusTextToStatusDescriptionMap}; | ||
function e(e){return e in a||e in u}function t(t){if(!e(t))throw new Error(`${t} is not a known HTTP status code or status text.`);const[r,o]=[u[t]||t,d[t]||c[t]];return{code:r,message:o,success:r<400}}function r(e){try{return t(e).success}catch(e){return!1}}function o(e){const r=t(e);return`${r.code} ${r.message.split(":")[0]}`}function i(e){const r=t(e);return`${r.code} ${r.message}`}function n(e){const t=u[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status text.`);return t}function s(e){const t=a[`${e}`];if(!t)throw new Error(`${e} is not a known HTTP status code.`);return t}const a={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Switch proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",440:"Login Timeout (Microsoft)",444:"No Response (Nginx)",449:"Retry With (Microsoft)",450:"Blocked by Windows Parental Controls (Microsoft)",451:"Unavailable For Legal Reasons",494:"Request Header Too Large (Nginx)",495:"Cert Error (Nginx)",496:"No Cert (Nginx)",497:"HTTP to HTTPS (Nginx)",498:"Token expired/invalid (Esri)",499:"Token required (Esri)",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required",520:"Unknown Error (Microsoft / CloudFlare)",521:"Web Server Is Down (CloudFlare)",522:"Connection Timed Out (CloudFlare)",523:"Origin Is Unreachable (CloudFlare)",524:"A Timeout Occurred (CloudFlare)",525:"SSL Handshake Failed (CloudFlare)",526:"Invalid SSL Certificate (CloudFlare)",527:"Railgun Error (CloudFlare)"},d={100:"Continue:The server has received the request headers, and that the client should proceed to send the request body.",101:"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",102:"Processing:The server has received and is processing the request, but no response is available yet.",200:"OK:The standard response for successful HTTP requests.",201:"Created:The request has been fulfilled and a new resource has been created.",202:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",203:"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",204:"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",205:"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",206:"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",207:"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",208:"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",226:"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",300:"Multiple choices:There are multiple options that the client may follow.",301:"Moved permanently:The resource has been moved and all further requests should reference its new URI.",302:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',303:"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",304:"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",305:"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",306:"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",307:"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",308:"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",400:"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",401:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",402:"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",403:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",404:"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",405:"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",406:"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",407:"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",408:"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",409:"Conflict:The request cannot be completed due to a conflict in the request parameters.",410:"Gone:The resource is no longer available at the requested URI and no redirection will be given.",411:"Length required:The request did not specify the length of its content as required by the resource.",412:"Precondition failed:The server does not meet one of the preconditions specified by the client.",413:"Request entity too large:The request is larger than what the server is able to process.",414:"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",415:"Unsupported media type:The client provided data with a media type that the server does not support.",416:"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",417:"Expectation failed:The server cannot meet the requirements of the Expect request-header field.",418:"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",421:"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",422:"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",423:"Locked:The requested resource was found but has been locked and will not be returned.",424:"Failed dependency:The request failed due to a failure of a previous request.",426:"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",428:"Precondition required:The origin server requires the request to be conditional.",429:'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',431:"Request header fields too large:The server is unwilling to process the request because its header fields are too large.",440:"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",444:"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",449:"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",450:"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",451:"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",494:"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",495:"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",496:"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",497:"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",498:"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",499:"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",500:"Internal server error:A generic status for an error in the server itself.",501:"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",502:"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",503:"Service unavailable:The server is down and is not accepting requests.",504:"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",505:"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",506:"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",507:"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",508:"Loop detected:The server detected an infinite loop in the request.",509:"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",510:"Not extended:Further extensions to the request are necessary for it to be fulfilled.",511:"Network authentication required:The client must authenticate with the network before sending requests.",520:'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',521:"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",522:"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",523:"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",524:"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",525:"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",526:"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",527:"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."},u={Continue:100,"Switching Protocols":101,Processing:102,OK:200,Created:201,Accepted:202,"Non-Authoritative Information":203,"No Content":204,"Reset Content":205,"Partial Content":206,"Multi-Status":207,"Already Reported":208,"IM Used":226,"Multiple Choices":300,"Moved Permanently":301,Found:302,"See Other":303,"Not Modified":304,"Use Proxy":305,"Switch proxy":306,"Temporary Redirect":307,"Permanent Redirect":308,"Bad Request":400,Unauthorized:401,"Payment Required":402,Forbidden:403,"Not Found":404,"Method Not Allowed":405,"Not Acceptable":406,"Proxy Authentication Required":407,"Request Timeout":408,Conflict:409,Gone:410,"Length Required":411,"Precondition Failed":412,"Payload Too Large":413,"URI Too Long":414,"Unsupported Media Type":415,"Range Not Satisfiable":416,"Expectation Failed":417,"I'm a Teapot":418,"Misdirected Request":421,"Unprocessable Entity":422,Locked:423,"Failed Dependency":424,"Upgrade Required":426,"Precondition Required":428,"Too Many Requests":429,"Request Header Fields Too Large":431,"Login Timeout (Microsoft)":440,"No Response (Nginx)":444,"Retry With (Microsoft)":449,"Blocked by Windows Parental Controls (Microsoft)":450,"Unavailable For Legal Reasons":451,"Request Header Too Large (Nginx)":494,"Cert Error (Nginx)":495,"No Cert (Nginx)":496,"HTTP to HTTPS (Nginx)":497,"Token expired/invalid (Esri)":498,"Token required (Esri)":499,"Internal Server Error":500,"Not Implemented":501,"Bad Gateway":502,"Service Unavailable":503,"Gateway Timeout":504,"HTTP Version Not Supported":505,"Variant Also Negotiates":506,"Insufficient Storage":507,"Loop Detected":508,"Bandwidth Limit Exceeded":509,"Not Extended":510,"Network Authentication Required":511,"Unknown Error (Microsoft / CloudFlare)":520,"Web Server Is Down (CloudFlare)":521,"Connection Timed Out (CloudFlare)":522,"Origin Is Unreachable (CloudFlare)":523,"A Timeout Occurred (CloudFlare)":524,"SSL Handshake Failed (CloudFlare)":525,"Invalid SSL Certificate (CloudFlare)":526,"Railgun Error (CloudFlare)":527},c={Continue:"Continue:The server has received the request headers, and that the client should proceed to send the request body.","Switching Protocols":"Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",Processing:"Processing:The server has received and is processing the request, but no response is available yet.",OK:"OK:The standard response for successful HTTP requests.",Created:"Created:The request has been fulfilled and a new resource has been created.",Accepted:"Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.","Non-Authoritative Information":"Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.","No Content":"No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.","Reset Content":"Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.","Partial Content":"Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.","Multi-Status":"Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","Already Reported":"Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.","IM Used":"IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","Multiple Choices":"Multiple choices:There are multiple options that the client may follow.","Moved Permanently":"Moved permanently:The resource has been moved and all further requests should reference its new URI.",Found:'Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',"See Other":"See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.","Not Modified":"Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.","Use Proxy":"Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.","Switch proxy":"Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.","Temporary Redirect":"Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.","Permanent Redirect":"Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests","Bad Request":"Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",Unauthorized:"Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.","Payment Required":"Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",Forbidden:"Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.","Not Found":"Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.","Method Not Allowed":"Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.","Not Acceptable":"Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.","Proxy Authentication Required":"Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.","Request Timeout":"Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",Conflict:"Conflict:The request cannot be completed due to a conflict in the request parameters.",Gone:"Gone:The resource is no longer available at the requested URI and no redirection will be given.","Length Required":"Length required:The request did not specify the length of its content as required by the resource.","Precondition Failed":"Precondition failed:The server does not meet one of the preconditions specified by the client.","Payload Too Large":"Request entity too large:The request is larger than what the server is able to process.","URI Too Long":"Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.","Unsupported Media Type":"Unsupported media type:The client provided data with a media type that the server does not support.","Range Not Satisfiable":"Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.","Expectation Failed":"Expectation failed:The server cannot meet the requirements of the Expect request-header field.","I'm a Teapot":"I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.","Misdirected Request":"Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.","Unprocessable Entity":"Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",Locked:"Locked:The requested resource was found but has been locked and will not be returned.","Failed Dependency":"Failed dependency:The request failed due to a failure of a previous request.","Upgrade Required":"Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.","Precondition Required":"Precondition required:The origin server requires the request to be conditional.","Too Many Requests":'Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',"Request Header Fields Too Large":"Request header fields too large:The server is unwilling to process the request because its header fields are too large.","Login Timeout (Microsoft)":"Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.","No Response (Nginx)":"No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).","Retry With (Microsoft)":"Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.","Blocked by Windows Parental Controls (Microsoft)":"Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.","Unavailable For Legal Reasons":"Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.","Request Header Too Large (Nginx)":"Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).","Cert Error (Nginx)":"Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.","No Cert (Nginx)":"No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.","HTTP to HTTPS (Nginx)":"HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.","Token expired/invalid (Esri)":"Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.","Token required (Esri)":"Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).","Internal Server Error":"Internal server error:A generic status for an error in the server itself.","Not Implemented":"Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.","Bad Gateway":"Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.","Service Unavailable":"Service unavailable:The server is down and is not accepting requests.","Gateway Timeout":"Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.","HTTP Version Not Supported":"HTTP version not supported:The server does not support the HTTP protocol version specified in the request.","Variant Also Negotiates":"Variant also negotiates:Transparent content negotiation for the request results in a circular reference.","Insufficient Storage":"Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.","Loop Detected":"Loop detected:The server detected an infinite loop in the request.","Bandwidth Limit Exceeded":"Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.","Not Extended":"Not extended:Further extensions to the request are necessary for it to be fulfilled.","Network Authentication Required":"Network authentication required:The client must authenticate with the network before sending requests.","Unknown Error (Microsoft / CloudFlare)":'Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',"Web Server Is Down (CloudFlare)":"Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.","Connection Timed Out (CloudFlare)":"Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.","Origin Is Unreachable (CloudFlare)":"Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.","A Timeout Occurred (CloudFlare)":"A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","SSL Handshake Failed (CloudFlare)":"SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.","Invalid SSL Certificate (CloudFlare)":"Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.","Railgun Error (CloudFlare)":"Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."};var h,l,T;!function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.ALREADY_REPORTED=208]="ALREADY_REPORTED",e[e.IM_USED=226]="IM_USED",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.FOUND=302]="FOUND",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.SWITCH_PROXY=306]="SWITCH_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",e[e.URI_TOO_LONG=414]="URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.I_M_A_TEAPOT=418]="I_M_A_TEAPOT",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.LOGIN_TIMEOUT_MICROSOFT=440]="LOGIN_TIMEOUT_MICROSOFT",e[e.NO_RESPONSE_NGINX=444]="NO_RESPONSE_NGINX",e[e.RETRY_WITH_MICROSOFT=449]="RETRY_WITH_MICROSOFT",e[e.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT=450]="BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.REQUEST_HEADER_TOO_LARGE_NGINX=494]="REQUEST_HEADER_TOO_LARGE_NGINX",e[e.CERT_ERROR_NGINX=495]="CERT_ERROR_NGINX",e[e.NO_CERT_NGINX=496]="NO_CERT_NGINX",e[e.HTTP_TO_HTTPS_NGINX=497]="HTTP_TO_HTTPS_NGINX",e[e.TOKEN_EXPIRED_INVALID_ESRI=498]="TOKEN_EXPIRED_INVALID_ESRI",e[e.TOKEN_REQUIRED_ESRI=499]="TOKEN_REQUIRED_ESRI",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.LOOP_DETECTED=508]="LOOP_DETECTED",e[e.BANDWIDTH_LIMIT_EXCEEDED=509]="BANDWIDTH_LIMIT_EXCEEDED",e[e.NOT_EXTENDED=510]="NOT_EXTENDED",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE=520]="UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE",e[e.WEB_SERVER_IS_DOWN_CLOUD_FLARE=521]="WEB_SERVER_IS_DOWN_CLOUD_FLARE",e[e.CONNECTION_TIMED_OUT_CLOUD_FLARE=522]="CONNECTION_TIMED_OUT_CLOUD_FLARE",e[e.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE=523]="ORIGIN_IS_UNREACHABLE_CLOUD_FLARE",e[e.A_TIMEOUT_OCCURRED_CLOUD_FLARE=524]="A_TIMEOUT_OCCURRED_CLOUD_FLARE",e[e.SSL_HANDSHAKE_FAILED_CLOUD_FLARE=525]="SSL_HANDSHAKE_FAILED_CLOUD_FLARE",e[e.INVALID_SSL_CERTIFICATE_CLOUD_FLARE=526]="INVALID_SSL_CERTIFICATE_CLOUD_FLARE",e[e.RAILGUN_ERROR_CLOUD_FLARE=527]="RAILGUN_ERROR_CLOUD_FLARE"}(h||(h={})),function(e){e.CONTINUE="Continue:The server has received the request headers, and that the client should proceed to send the request body.",e.SWITCHING_PROTOCOLS="Switching protocols:The requester has asked the server to switch protocols and the server is acknowledging that it will do so.",e.PROCESSING="Processing:The server has received and is processing the request, but no response is available yet.",e.OK="OK:The standard response for successful HTTP requests.",e.CREATED="Created:The request has been fulfilled and a new resource has been created.",e.ACCEPTED="Accepted:The request has been accepted but has not been processed yet. This code does not guarantee that the request will process successfully.",e.NON_AUTHORITATIVE_INFORMATION="Non-authoritative information:HTTP 1.1. The server successfully processed the request but is returning information from another source.",e.NO_CONTENT="No content:The server accepted the request but is not returning any content. This is often used as a response to a DELETE request.",e.RESET_CONTENT="Reset content:Similar to a 204 No Content response but this response requires the requester to reset the document view.",e.PARTIAL_CONTENT="Partial content:The server is delivering only a portion of the content, as requested by the client via a range header.",e.MULTI_STATUS="Multi-status:The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.",e.ALREADY_REPORTED="Already reported:The members of a DAV binding have already been enumerated in a previous reply to this request, and are not being included again.",e.IM_USED="IM used:The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",e.MULTIPLE_CHOICES="Multiple choices:There are multiple options that the client may follow.",e.MOVED_PERMANENTLY="Moved permanently:The resource has been moved and all further requests should reference its new URI.",e.FOUND='Found:The HTTP 1.0 specification described this status as "Moved Temporarily", but popular browsers respond to this status similar to behavior intended for 303. The resource can be retrieved by referencing the returned URI.',e.SEE_OTHER="See other:The resource can be retrieved by following other URI using the GET method. When received in response to a POST, PUT, or DELETE, it can usually be assumed that the server processed the request successfully and is sending the client to an informational endpoint.",e.NOT_MODIFIED="Not modified:The resource has not been modified since the version specified in If-Modified-Since or If-Match headers. The resource will not be returned in response body.",e.USE_PROXY="Use proxy:HTTP 1.1. The resource is only available through a proxy and the address is provided in the response.",e.SWITCH_PROXY="Switch proxy:Deprecated in HTTP 1.1. Used to mean that subsequent requests should be sent using the specified proxy.",e.TEMPORARY_REDIRECT="Temporary redirect:HTTP 1.1. The request should be repeated with the URI provided in the response, but future requests should still call the original URI.",e.PERMANENT_REDIRECT="Resume Incomplete (Google):This code is used in the Resumable HTTP Requests Proposal to resume aborted PUT or POST requests",e.BAD_REQUEST="Bad request:The request could not be fulfilled due to the incorrect syntax of the request.",e.UNAUTHORIZED="Unauthorized:The requester is not authorized to access the resource. This is similar to 403 but is used in cases where authentication is expected but has failed or has not been provided.",e.PAYMENT_REQUIRED="Payment required:Reserved for future use. Some web services use this as an indication that the client has sent an excessive number of requests.",e.FORBIDDEN="Forbidden:The request was formatted correctly but the server is refusing to supply the requested resource. Unlike 401, authenticating will not make a difference in the server's response.",e.NOT_FOUND="Not found:The resource could not be found. This is often used as a catch-all for all invalid URIs requested of the server.",e.METHOD_NOT_ALLOWED="Method not allowed:The resource was requested using a method that is not allowed. For example, requesting a resource via a POST method when the resource only supports the GET method.",e.NOT_ACCEPTABLE="Not acceptable:The resource is valid, but cannot be provided in a format specified in the Accept headers in the request.",e.PROXY_AUTHENTICATION_REQUIRED="Proxy authentication required:Authentication is required with the proxy before requests can be fulfilled.",e.REQUEST_TIMEOUT="Request timeout:The server timed out waiting for a request from the client. The client is allowed to repeat the request.",e.CONFLICT="Conflict:The request cannot be completed due to a conflict in the request parameters.",e.GONE="Gone:The resource is no longer available at the requested URI and no redirection will be given.",e.LENGTH_REQUIRED="Length required:The request did not specify the length of its content as required by the resource.",e.PRECONDITION_FAILED="Precondition failed:The server does not meet one of the preconditions specified by the client.",e.PAYLOAD_TOO_LARGE="Request entity too large:The request is larger than what the server is able to process.",e.URI_TOO_LONG="Request-URI too long:The URI provided in the request is too long for the server to process. This is often used when too much data has been encoded into the URI of a GET request and a POST request should be used instead.",e.UNSUPPORTED_MEDIA_TYPE="Unsupported media type:The client provided data with a media type that the server does not support.",e.RANGE_NOT_SATISFIABLE="Requested range not satisfiable:The client has asked for a portion of the resource but the server cannot supply that portion.",e.EXPECTATION_FAILED="Expectation failed:The server cannot meet the requirements of the Expect request-header field.",e.I_M_A_TEAPOT="I'm a teapot:Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.",e.MISDIRECTED_REQUEST="Misdirected request:The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.",e.UNPROCESSABLE_ENTITY="Unprocessable entity:The request was formatted correctly but cannot be processed in its current form. Often used when the specified parameters fail validation errors.",e.LOCKED="Locked:The requested resource was found but has been locked and will not be returned.",e.FAILED_DEPENDENCY="Failed dependency:The request failed due to a failure of a previous request.",e.UPGRADE_REQUIRED="Upgrade required:The client should repeat the request using an upgraded protocol such as TLS 1.0.",e.PRECONDITION_REQUIRED="Precondition required:The origin server requires the request to be conditional.",e.TOO_MANY_REQUESTS='Too many requests:The user has sent too many requests in a given amount of time ("rate limiting").',e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request header fields too large:The server is unwilling to process the request because its header fields are too large.",e.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft):A Microsoft extension. Indicates that your session has expired.",e.NO_RESPONSE_NGINX="No Response (Nginx):Used in Nginx logs to indicate that the server has returned no information to the client and closed the connection (useful as a deterrent for malware).",e.RETRY_WITH_MICROSOFT="Retry With (Microsoft):A Microsoft extension. The request should be retried after performing the appropriate action.",e.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft):A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.",e.UNAVAILABLE_FOR_LEGAL_REASONS="Redirect (Microsoft):Used in Exchange ActiveSync if there either is a more efficient server to use or the server cannot access the users' mailbox.",e.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx):Nginx internal code similar to 431 but it was introduced earlier in version 0.9.4 (on January 21, 2011).",e.CERT_ERROR_NGINX="Cert Error (Nginx):Nginx internal code used when SSL client certificate error occurred to distinguish it from 4XX in a log and an error page redirection.",e.NO_CERT_NGINX="No Cert (Nginx):Nginx internal code used when client didn't provide certificate to distinguish it from 4XX in a log and an error page redirection.",e.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx):Nginx internal code used for the plain HTTP requests that are sent to HTTPS port to distinguish it from 4XX in a log and an error page redirection.",e.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri):Returned by ArcGIS for Server. A code of 498 indicates an expired or otherwise invalid token.",e.TOKEN_REQUIRED_ESRI="Token required (Esri):Returned by ArcGIS for Server. A code of 499 indicates that a token is required (if no token was submitted).",e.INTERNAL_SERVER_ERROR="Internal server error:A generic status for an error in the server itself.",e.NOT_IMPLEMENTED="Not implemented:The server cannot respond to the request. This usually implies that the server could possibly support the request in the future — otherwise a 4xx status may be more appropriate.",e.BAD_GATEWAY="Bad gateway:The server is acting as a proxy and did not receive an acceptable response from the upstream server.",e.SERVICE_UNAVAILABLE="Service unavailable:The server is down and is not accepting requests.",e.GATEWAY_TIMEOUT="Gateway timeout:The server is acting as a proxy and did not receive a response from the upstream server.",e.HTTP_VERSION_NOT_SUPPORTED="HTTP version not supported:The server does not support the HTTP protocol version specified in the request.",e.VARIANT_ALSO_NEGOTIATES="Variant also negotiates:Transparent content negotiation for the request results in a circular reference.",e.INSUFFICIENT_STORAGE="Insufficient storage:The user or server does not have sufficient storage quota to fulfill the request.",e.LOOP_DETECTED="Loop detected:The server detected an infinite loop in the request.",e.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded (Apache bw/limited extension):This status code is not specified in any RFCs. Its use is unknown.",e.NOT_EXTENDED="Not extended:Further extensions to the request are necessary for it to be fulfilled.",e.NETWORK_AUTHENTICATION_REQUIRED="Network authentication required:The client must authenticate with the network before sending requests.",e.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE='Unknown Error (Microsoft / CloudFlare):This status code is not specified in any RFC and is returned by certain services, for instance Microsoft Azure and CloudFlare servers: "The 520 error is essentially a "catch-all" response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response)."',e.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare):The origin server has refused the connection from CloudFlare.",e.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare):CloudFlare could not negotiate a TCP handshake with the origin server.",e.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare):CloudFlare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.",e.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare):CloudFlare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.",e.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare):CloudFlare could not negotiate a SSL/TLS handshake with the origin server.",e.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare):CloudFlare could not validate the SSL/TLS certificate that the origin server presented.",e.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare):The request timed out or failed after the WAN connection has been established."}(l||(l={})),function(e){e.CONTINUE="Continue",e.SWITCHING_PROTOCOLS="Switching Protocols",e.PROCESSING="Processing",e.OK="OK",e.CREATED="Created",e.ACCEPTED="Accepted",e.NON_AUTHORITATIVE_INFORMATION="Non-Authoritative Information",e.NO_CONTENT="No Content",e.RESET_CONTENT="Reset Content",e.PARTIAL_CONTENT="Partial Content",e.MULTI_STATUS="Multi-Status",e.ALREADY_REPORTED="Already Reported",e.IM_USED="IM Used",e.MULTIPLE_CHOICES="Multiple Choices",e.MOVED_PERMANENTLY="Moved Permanently",e.FOUND="Found",e.SEE_OTHER="See Other",e.NOT_MODIFIED="Not Modified",e.USE_PROXY="Use Proxy",e.SWITCH_PROXY="Switch proxy",e.TEMPORARY_REDIRECT="Temporary Redirect",e.PERMANENT_REDIRECT="Permanent Redirect",e.BAD_REQUEST="Bad Request",e.UNAUTHORIZED="Unauthorized",e.PAYMENT_REQUIRED="Payment Required",e.FORBIDDEN="Forbidden",e.NOT_FOUND="Not Found",e.METHOD_NOT_ALLOWED="Method Not Allowed",e.NOT_ACCEPTABLE="Not Acceptable",e.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",e.REQUEST_TIMEOUT="Request Timeout",e.CONFLICT="Conflict",e.GONE="Gone",e.LENGTH_REQUIRED="Length Required",e.PRECONDITION_FAILED="Precondition Failed",e.PAYLOAD_TOO_LARGE="Payload Too Large",e.URI_TOO_LONG="URI Too Long",e.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",e.RANGE_NOT_SATISFIABLE="Range Not Satisfiable",e.EXPECTATION_FAILED="Expectation Failed",e.I_M_A_TEAPOT="I'm a Teapot",e.MISDIRECTED_REQUEST="Misdirected Request",e.UNPROCESSABLE_ENTITY="Unprocessable Entity",e.LOCKED="Locked",e.FAILED_DEPENDENCY="Failed Dependency",e.UPGRADE_REQUIRED="Upgrade Required",e.PRECONDITION_REQUIRED="Precondition Required",e.TOO_MANY_REQUESTS="Too Many Requests",e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",e.LOGIN_TIMEOUT_MICROSOFT="Login Timeout (Microsoft)",e.NO_RESPONSE_NGINX="No Response (Nginx)",e.RETRY_WITH_MICROSOFT="Retry With (Microsoft)",e.BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS_MICROSOFT="Blocked by Windows Parental Controls (Microsoft)",e.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",e.REQUEST_HEADER_TOO_LARGE_NGINX="Request Header Too Large (Nginx)",e.CERT_ERROR_NGINX="Cert Error (Nginx)",e.NO_CERT_NGINX="No Cert (Nginx)",e.HTTP_TO_HTTPS_NGINX="HTTP to HTTPS (Nginx)",e.TOKEN_EXPIRED_INVALID_ESRI="Token expired/invalid (Esri)",e.TOKEN_REQUIRED_ESRI="Token required (Esri)",e.INTERNAL_SERVER_ERROR="Internal Server Error",e.NOT_IMPLEMENTED="Not Implemented",e.BAD_GATEWAY="Bad Gateway",e.SERVICE_UNAVAILABLE="Service Unavailable",e.GATEWAY_TIMEOUT="Gateway Timeout",e.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",e.VARIANT_ALSO_NEGOTIATES="Variant Also Negotiates",e.INSUFFICIENT_STORAGE="Insufficient Storage",e.LOOP_DETECTED="Loop Detected",e.BANDWIDTH_LIMIT_EXCEEDED="Bandwidth Limit Exceeded",e.NOT_EXTENDED="Not Extended",e.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",e.UNKNOWN_ERROR_MICROSOFT_CLOUD_FLARE="Unknown Error (Microsoft / CloudFlare)",e.WEB_SERVER_IS_DOWN_CLOUD_FLARE="Web Server Is Down (CloudFlare)",e.CONNECTION_TIMED_OUT_CLOUD_FLARE="Connection Timed Out (CloudFlare)",e.ORIGIN_IS_UNREACHABLE_CLOUD_FLARE="Origin Is Unreachable (CloudFlare)",e.A_TIMEOUT_OCCURRED_CLOUD_FLARE="A Timeout Occurred (CloudFlare)",e.SSL_HANDSHAKE_FAILED_CLOUD_FLARE="SSL Handshake Failed (CloudFlare)",e.INVALID_SSL_CERTIFICATE_CLOUD_FLARE="Invalid SSL Certificate (CloudFlare)",e.RAILGUN_ERROR_CLOUD_FLARE="Railgun Error (CloudFlare)"}(T||(T={}));export{h as HttpStatusCode,l as HttpStatusDescription,T as HttpStatusText,o as getSimpleStatusMessage,n as getStatusCode,t as getStatusInfo,i as getStatusMessage,s as getStatusText,e as isCodeOrTextValid,r as isStatusSuccessful,d as statusCodeToStatusDescriptionMap,a as statusCodeToStatusTextMap,u as statusTextToStatusCodeMap,c as statusTextToStatusDescriptionMap}; |
{ | ||
"name": "@http-status-codes/i18n-en", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"main": "./index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "./index.esm.js", |
@@ -61,2 +61,11 @@ /** | ||
/** | ||
* Returns a string containing the provided status code and simple message. | ||
* @example getSimpleStatusMessage(200) -> 200 OK | ||
* getSimpleStatusMessage('OK') -> 200 OK | ||
* | ||
* @param codeOrText: HTTPStatusCode | HTTPStatusText | ||
* @returns simpleStatusMessage: string | ||
*/ | ||
export declare function getSimpleStatusMessage(codeOrText: HTTPStatusCode | HTTPStatusText): string; | ||
/** | ||
* Returns a string containing the provided status code and message. | ||
@@ -63,0 +72,0 @@ * @example getStatusMessage(200) -> 200 OK:The standard response for successful HTTP requests. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261403
1933
371