UNPKG

@opengg/status-es

Version:

A lightweight, tree-shakable utility for HTTP status codes and reason phrases in TypeScript/JavaScript. Auto-generated and ESM-compatible.

1,562 lines (1,561 loc) 48.2 kB
/** * code: 100 * message: Continue * description: The server has received the request headers, and the client should proceed to send the request body. */ export declare const CONTINUE = 100; /** * code: 101 * message: Switching Protocols * description: The requester has asked the server to switch protocols. */ export declare const SWITCHING_PROTOCOLS = 101; /** * code: 102 * message: Processing * description: This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost. */ export declare const PROCESSING = 102; /** * code: 103 * message: Early Hints * description: Used to return some response headers before final HTTP message. */ export declare const EARLY_HINTS = 103; /** * code: 200 * message: OK * description: The request is OK (this is the standard response for successful HTTP requests). */ export declare const OK = 200; /** * code: 201 * message: Created * description: The request has been fulfilled, and a new resource is created. */ export declare const CREATED = 201; /** * code: 202 * message: Accepted * description: The request has been accepted for processing, but the processing has not been completed. */ export declare const ACCEPTED = 202; /** * code: 203 * message: Non-Authoritative Information * description: The request has been successfully processed, but is returning information that may be from another source. */ export declare const NON_AUTHORITATIVE_INFORMATION = 203; /** * code: 204 * message: No Content * description: The request has been successfully processed, but is not returning any content. */ export declare const NO_CONTENT = 204; /** * code: 205 * message: Reset Content * description: The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view. */ export declare const RESET_CONTENT = 205; /** * code: 206 * message: Partial Content * description: The server is delivering only part of the resource due to a range header sent by the client. */ export declare const PARTIAL_CONTENT = 206; /** * code: 207 * message: Multi-Status * description: The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made. */ export declare const MULTI_STATUS = 207; /** * code: 208 * message: Already Reported * description: The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again. */ export declare const ALREADY_REPORTED = 208; /** * code: 218 * message: This is fine (Apache Web Server) * description: Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. */ export declare const THIS_IS_FINE_APACHE_WEB_SERVER_ = 218; /** * code: 226 * message: IM Used * description: The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance. */ export declare const IM_USED = 226; /** * code: 300 * message: Multiple Choices * description: A link list. The user can select a link and go to that location. Maximum five addresses. */ export declare const MULTIPLE_CHOICES = 300; /** * code: 301 * message: Moved Permanently * description: The requested page has moved to a new URL. */ export declare const MOVED_PERMANENTLY = 301; /** * code: 302 * message: Found * description: The requested page has moved temporarily to a new URL. */ export declare const FOUND = 302; /** * code: 303 * message: See Other * description: The requested page can be found under a different URL. */ export declare const SEE_OTHER = 303; /** * code: 304 * message: Not Modified * description: Indicates the requested page has not been modified since last requested. */ export declare const NOT_MODIFIED = 304; /** * code: 306 * message: Switch Proxy * description: No longer used. Originally meant "Subsequent requests should use the specified proxy." */ export declare const SWITCH_PROXY = 306; /** * code: 307 * message: Temporary Redirect * description: The requested page has moved temporarily to a new URL. */ export declare const TEMPORARY_REDIRECT = 307; /** * code: 308 * message: Resume Incomplete * description: Used in the resumable requests proposal to resume aborted PUT or POST requests. */ export declare const RESUME_INCOMPLETE = 308; /** * code: 400 * message: Bad Request * description: The request cannot be fulfilled due to bad syntax. */ export declare const BAD_REQUEST = 400; /** * code: 401 * message: Unauthorized * description: The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided. */ export declare const UNAUTHORIZED = 401; /** * code: 402 * message: Payment Required * description: Not yet implemented by RFC standards, but reserved for future use. */ export declare const PAYMENT_REQUIRED = 402; /** * code: 403 * message: Forbidden * description: The request was a legal request, but the server is refusing to respond to it. */ export declare const FORBIDDEN = 403; /** * code: 404 * message: Not Found * description: The requested page could not be found but may be available again in the future. */ export declare const NOT_FOUND = 404; /** * code: 405 * message: Method Not Allowed * description: A request was made of a page using a request method not supported by that page. */ export declare const METHOD_NOT_ALLOWED = 405; /** * code: 406 * message: Not Acceptable * description: The server can only generate a response that is not accepted by the client. */ export declare const NOT_ACCEPTABLE = 406; /** * code: 407 * message: Proxy Authentication Required * description: The client must first authenticate itself with the proxy. */ export declare const PROXY_AUTHENTICATION_REQUIRED = 407; /** * code: 408 * message: Request Timeout * description: The server timed out waiting for the request. */ export declare const REQUEST_TIMEOUT = 408; /** * code: 409 * message: Conflict * description: The request could not be completed because of a conflict in the request. */ export declare const CONFLICT = 409; /** * code: 410 * message: Gone * description: The requested page is no longer available. */ export declare const GONE = 410; /** * code: 411 * message: Length Required * description: The "Content-Length" is not defined. The server will not accept the request without it. */ export declare const LENGTH_REQUIRED = 411; /** * code: 412 * message: Precondition Failed * description: The precondition given in the request evaluated to false by the server. */ export declare const PRECONDITION_FAILED = 412; /** * code: 413 * message: Request Entity Too Large * description: The server will not accept the request, because the request entity is too large. */ export declare const REQUEST_ENTITY_TOO_LARGE = 413; /** * code: 414 * message: Request-URI Too Long * description: The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information. */ export declare const REQUEST_URI_TOO_LONG = 414; /** * code: 415 * message: Unsupported Media Type * description: The server will not accept the request, because the media type is not supported. */ export declare const UNSUPPORTED_MEDIA_TYPE = 415; /** * code: 416 * message: Requested Range Not Satisfiable * description: The client has asked for a portion of the file, but the server cannot supply that portion. */ export declare const REQUESTED_RANGE_NOT_SATISFIABLE = 416; /** * code: 417 * message: Expectation Failed * description: The server cannot meet the requirements of the Expect request-header field. */ export declare const EXPECTATION_FAILED = 417; /** * code: 418 * message: I'm a teapot * description: 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. */ export declare const I_M_A_TEAPOT = 418; /** * code: 419 * message: Page Expired (Laravel Framework) * description: Used by the Laravel Framework when a CSRF Token is missing or expired. */ export declare const PAGE_EXPIRED_LARAVEL_FRAMEWORK_ = 419; /** * code: 420 * message: Method Failure (Spring Framework) * description: A deprecated response used by the Spring Framework when a method has failed. */ export declare const METHOD_FAILURE_SPRING_FRAMEWORK_ = 420; /** * code: 421 * message: Misdirected Request * description: The request was directed at a server that is not able to produce a response (for example because a connection reuse). */ export declare const MISDIRECTED_REQUEST = 421; /** * code: 422 * message: Unprocessable Entity * description: The request was well-formed but was unable to be followed due to semantic errors. */ export declare const UNPROCESSABLE_ENTITY = 422; /** * code: 423 * message: Locked * description: The resource that is being accessed is locked. */ export declare const LOCKED = 423; /** * code: 424 * message: Failed Dependency * description: The request failed due to failure of a previous request (e.g., a PROPPATCH). */ export declare const FAILED_DEPENDENCY = 424; /** * code: 426 * message: Upgrade Required * description: The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field. */ export declare const UPGRADE_REQUIRED = 426; /** * code: 428 * message: Precondition Required * description: The origin server requires the request to be conditional. */ export declare const PRECONDITION_REQUIRED = 428; /** * code: 429 * message: Too Many Requests * description: The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes. */ export declare const TOO_MANY_REQUESTS = 429; /** * code: 431 * message: Request Header Fields Too Large * description: The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large. */ export declare const REQUEST_HEADER_FIELDS_TOO_LARGE = 431; /** * code: 440 * message: Login Time-out * description: The client's session has expired and must log in again. (IIS) */ export declare const LOGIN_TIME_OUT = 440; /** * code: 444 * message: Connection Closed Without Response * description: A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests. */ export declare const CONNECTION_CLOSED_WITHOUT_RESPONSE = 444; /** * code: 449 * message: Retry With * description: The server cannot honour the request because the user has not provided the required information. (IIS) */ export declare const RETRY_WITH = 449; /** * code: 450 * message: Blocked by Windows Parental Controls * description: The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage. */ export declare const BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS = 450; /** * code: 451 * message: Unavailable For Legal Reasons * description: A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource. */ export declare const UNAVAILABLE_FOR_LEGAL_REASONS = 451; /** * code: 494 * message: Request Header Too Large * description: Used by nginx to indicate the client sent too large of a request or header line that is too long. */ export declare const REQUEST_HEADER_TOO_LARGE = 494; /** * code: 495 * message: SSL Certificate Error * description: An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate. */ export declare const SSL_CERTIFICATE_ERROR = 495; /** * code: 496 * message: SSL Certificate Required * description: An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided. */ export declare const SSL_CERTIFICATE_REQUIRED = 496; /** * code: 497 * message: HTTP Request Sent to HTTPS Port * description: An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests. */ export declare const HTTP_REQUEST_SENT_TO_HTTPS_PORT = 497; /** * code: 498 * message: Invalid Token (Esri) * description: Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token. */ export declare const INVALID_TOKEN_ESRI_ = 498; /** * code: 499 * message: Client Closed Request * description: A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request. */ export declare const CLIENT_CLOSED_REQUEST = 499; /** * code: 500 * message: Internal Server Error * description: An error has occurred in a server side script, a no more specific message is suitable. */ export declare const INTERNAL_SERVER_ERROR = 500; /** * code: 501 * message: Not Implemented * description: The server either does not recognize the request method, or it lacks the ability to fulfill the request. */ export declare const NOT_IMPLEMENTED = 501; /** * code: 502 * message: Bad Gateway * description: The server was acting as a gateway or proxy and received an invalid response from the upstream server. */ export declare const BAD_GATEWAY = 502; /** * code: 503 * message: Service Unavailable * description: The server is currently unavailable (overloaded or down). */ export declare const SERVICE_UNAVAILABLE = 503; /** * code: 504 * message: Gateway Timeout * description: The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. */ export declare const GATEWAY_TIMEOUT = 504; /** * code: 505 * message: HTTP Version Not Supported * description: The server does not support the HTTP protocol version used in the request. */ export declare const HTTP_VERSION_NOT_SUPPORTED = 505; /** * code: 506 * message: Variant Also Negotiates * description: Transparent content negotiation for the request results in a circular reference. */ export declare const VARIANT_ALSO_NEGOTIATES = 506; /** * code: 507 * message: Insufficient Storage * description: The server is unable to store the representation needed to complete the request. */ export declare const INSUFFICIENT_STORAGE = 507; /** * code: 508 * message: Loop Detected * description: The server detected an infinite loop while processing the request (sent instead of 208 Already Reported). */ export declare const LOOP_DETECTED = 508; /** * code: 509 * message: Bandwidth Limit Exceeded * description: The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers. */ export declare const BANDWIDTH_LIMIT_EXCEEDED = 509; /** * code: 510 * message: Not Extended * description: Further extensions to the request are required for the server to fulfil it. */ export declare const NOT_EXTENDED = 510; /** * code: 511 * message: Network Authentication Required * description: The client needs to authenticate to gain network access. */ export declare const NETWORK_AUTHENTICATION_REQUIRED = 511; /** * code: 520 * message: Unknown Error * description: The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers. */ export declare const UNKNOWN_ERROR = 520; /** * code: 521 * message: Web Server Is Down * description: The origin server has refused the connection from Cloudflare. */ export declare const WEB_SERVER_IS_DOWN = 521; /** * code: 522 * message: Connection Timed Out * description: Cloudflare could not negotiate a TCP handshake with the origin server. */ export declare const CONNECTION_TIMED_OUT = 522; /** * code: 523 * message: Origin Is Unreachable * description: Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect. */ export declare const ORIGIN_IS_UNREACHABLE = 523; /** * code: 524 * message: A Timeout Occurred * description: Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response. */ export declare const A_TIMEOUT_OCCURRED = 524; /** * code: 525 * message: SSL Handshake Failed * description: Cloudflare could not negotiate a SSL/TLS handshake with the origin server. */ export declare const SSL_HANDSHAKE_FAILED = 525; /** * code: 526 * message: Invalid SSL Certificate * description: Used by Cloudflare and Cloud Foundry's gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented. */ export declare const INVALID_SSL_CERTIFICATE = 526; /** * code: 527 * message: Railgun Listener to Origin Error * description: Error 527 indicates that the request timed out or failed after the WAN connection had been established. */ export declare const RAILGUN_LISTENER_TO_ORIGIN_ERROR = 527; /** * code: 530 * message: Origin DNS Error * description: Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server. */ export declare const ORIGIN_DNS_ERROR = 530; /** * code: 598 * message: Network Read Timeout Error * description: Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy. */ export declare const NETWORK_READ_TIMEOUT_ERROR = 598; /** * code: 1xx * message: Information * description: 1xx codes are often interim responses for sharing connection status information. Not intended for final request or response action. */ export type HTTP_STATUS_INFORMATION = /** * code: 100 * message: Continue * description: The server has received the request headers, and the client should proceed to send the request body. */ 100 /** * code: 101 * message: Switching Protocols * description: The requester has asked the server to switch protocols. */ | 101 /** * code: 102 * message: Processing * description: This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost. */ | 102 /** * code: 103 * message: Early Hints * description: Used to return some response headers before final HTTP message. */ | 103; /** * code: 2xx * message: Successful * description: 2xx codes indicate successful responses usually this means the action requested by the client was received, understood and accepted successfully. */ export type HTTP_STATUS_SUCCESSFUL = /** * code: 200 * message: OK * description: The request is OK (this is the standard response for successful HTTP requests). */ 200 /** * code: 201 * message: Created * description: The request has been fulfilled, and a new resource is created. */ | 201 /** * code: 202 * message: Accepted * description: The request has been accepted for processing, but the processing has not been completed. */ | 202 /** * code: 203 * message: Non-Authoritative Information * description: The request has been successfully processed, but is returning information that may be from another source. */ | 203 /** * code: 204 * message: No Content * description: The request has been successfully processed, but is not returning any content. */ | 204 /** * code: 205 * message: Reset Content * description: The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view. */ | 205 /** * code: 206 * message: Partial Content * description: The server is delivering only part of the resource due to a range header sent by the client. */ | 206 /** * code: 207 * message: Multi-Status * description: The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made. */ | 207 /** * code: 208 * message: Already Reported * description: The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again. */ | 208 /** * code: 218 * message: This is fine (Apache Web Server) * description: Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. */ | 218 /** * code: 226 * message: IM Used * description: The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance. */ | 226; /** * code: 3xx * message: Redirection * description: 3xx codes are a class of responses that suggest the User-Agent must follow another course of action to obtain the complete requested resource. */ export type HTTP_STATUS_REDIRECTION = /** * code: 300 * message: Multiple Choices * description: A link list. The user can select a link and go to that location. Maximum five addresses. */ 300 /** * code: 301 * message: Moved Permanently * description: The requested page has moved to a new URL. */ | 301 /** * code: 302 * message: Found * description: The requested page has moved temporarily to a new URL. */ | 302 /** * code: 303 * message: See Other * description: The requested page can be found under a different URL. */ | 303 /** * code: 304 * message: Not Modified * description: Indicates the requested page has not been modified since last requested. */ | 304 /** * code: 306 * message: Switch Proxy * description: No longer used. Originally meant "Subsequent requests should use the specified proxy." */ | 306 /** * code: 307 * message: Temporary Redirect * description: The requested page has moved temporarily to a new URL. */ | 307 /** * code: 308 * message: Resume Incomplete * description: Used in the resumable requests proposal to resume aborted PUT or POST requests. */ | 308; /** * code: 4xx * message: Client Error * description: 4xx codes generally are error responses specifying an issue at the client’s end. Potentially a network issue. */ export type HTTP_STATUS_CLIENT_ERROR = /** * code: 400 * message: Bad Request * description: The request cannot be fulfilled due to bad syntax. */ 400 /** * code: 401 * message: Unauthorized * description: The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided. */ | 401 /** * code: 402 * message: Payment Required * description: Not yet implemented by RFC standards, but reserved for future use. */ | 402 /** * code: 403 * message: Forbidden * description: The request was a legal request, but the server is refusing to respond to it. */ | 403 /** * code: 404 * message: Not Found * description: The requested page could not be found but may be available again in the future. */ | 404 /** * code: 405 * message: Method Not Allowed * description: A request was made of a page using a request method not supported by that page. */ | 405 /** * code: 406 * message: Not Acceptable * description: The server can only generate a response that is not accepted by the client. */ | 406 /** * code: 407 * message: Proxy Authentication Required * description: The client must first authenticate itself with the proxy. */ | 407 /** * code: 408 * message: Request Timeout * description: The server timed out waiting for the request. */ | 408 /** * code: 409 * message: Conflict * description: The request could not be completed because of a conflict in the request. */ | 409 /** * code: 410 * message: Gone * description: The requested page is no longer available. */ | 410 /** * code: 411 * message: Length Required * description: The "Content-Length" is not defined. The server will not accept the request without it. */ | 411 /** * code: 412 * message: Precondition Failed * description: The precondition given in the request evaluated to false by the server. */ | 412 /** * code: 413 * message: Request Entity Too Large * description: The server will not accept the request, because the request entity is too large. */ | 413 /** * code: 414 * message: Request-URI Too Long * description: The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information. */ | 414 /** * code: 415 * message: Unsupported Media Type * description: The server will not accept the request, because the media type is not supported. */ | 415 /** * code: 416 * message: Requested Range Not Satisfiable * description: The client has asked for a portion of the file, but the server cannot supply that portion. */ | 416 /** * code: 417 * message: Expectation Failed * description: The server cannot meet the requirements of the Expect request-header field. */ | 417 /** * code: 418 * message: I'm a teapot * description: 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. */ | 418 /** * code: 419 * message: Page Expired (Laravel Framework) * description: Used by the Laravel Framework when a CSRF Token is missing or expired. */ | 419 /** * code: 420 * message: Method Failure (Spring Framework) * description: A deprecated response used by the Spring Framework when a method has failed. */ | 420 /** * code: 421 * message: Misdirected Request * description: The request was directed at a server that is not able to produce a response (for example because a connection reuse). */ | 421 /** * code: 422 * message: Unprocessable Entity * description: The request was well-formed but was unable to be followed due to semantic errors. */ | 422 /** * code: 423 * message: Locked * description: The resource that is being accessed is locked. */ | 423 /** * code: 424 * message: Failed Dependency * description: The request failed due to failure of a previous request (e.g., a PROPPATCH). */ | 424 /** * code: 426 * message: Upgrade Required * description: The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field. */ | 426 /** * code: 428 * message: Precondition Required * description: The origin server requires the request to be conditional. */ | 428 /** * code: 429 * message: Too Many Requests * description: The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes. */ | 429 /** * code: 431 * message: Request Header Fields Too Large * description: The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large. */ | 431 /** * code: 440 * message: Login Time-out * description: The client's session has expired and must log in again. (IIS) */ | 440 /** * code: 444 * message: Connection Closed Without Response * description: A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests. */ | 444 /** * code: 449 * message: Retry With * description: The server cannot honour the request because the user has not provided the required information. (IIS) */ | 449 /** * code: 450 * message: Blocked by Windows Parental Controls * description: The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage. */ | 450 /** * code: 451 * message: Unavailable For Legal Reasons * description: A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource. */ | 451 /** * code: 494 * message: Request Header Too Large * description: Used by nginx to indicate the client sent too large of a request or header line that is too long. */ | 494 /** * code: 495 * message: SSL Certificate Error * description: An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate. */ | 495 /** * code: 496 * message: SSL Certificate Required * description: An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided. */ | 496 /** * code: 497 * message: HTTP Request Sent to HTTPS Port * description: An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests. */ | 497 /** * code: 498 * message: Invalid Token (Esri) * description: Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token. */ | 498 /** * code: 499 * message: Client Closed Request * description: A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request. */ | 499; /** * code: 5xx * message: Server Error * description: 5xx error codes indicate that an error or unresolvable request occurred on the server side, whether that is a proxy or the origin host. */ export type HTTP_STATUS_SERVER_ERROR = /** * code: 500 * message: Internal Server Error * description: An error has occurred in a server side script, a no more specific message is suitable. */ 500 /** * code: 501 * message: Not Implemented * description: The server either does not recognize the request method, or it lacks the ability to fulfill the request. */ | 501 /** * code: 502 * message: Bad Gateway * description: The server was acting as a gateway or proxy and received an invalid response from the upstream server. */ | 502 /** * code: 503 * message: Service Unavailable * description: The server is currently unavailable (overloaded or down). */ | 503 /** * code: 504 * message: Gateway Timeout * description: The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. */ | 504 /** * code: 505 * message: HTTP Version Not Supported * description: The server does not support the HTTP protocol version used in the request. */ | 505 /** * code: 506 * message: Variant Also Negotiates * description: Transparent content negotiation for the request results in a circular reference. */ | 506 /** * code: 507 * message: Insufficient Storage * description: The server is unable to store the representation needed to complete the request. */ | 507 /** * code: 508 * message: Loop Detected * description: The server detected an infinite loop while processing the request (sent instead of 208 Already Reported). */ | 508 /** * code: 509 * message: Bandwidth Limit Exceeded * description: The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers. */ | 509 /** * code: 510 * message: Not Extended * description: Further extensions to the request are required for the server to fulfil it. */ | 510 /** * code: 511 * message: Network Authentication Required * description: The client needs to authenticate to gain network access. */ | 511 /** * code: 520 * message: Unknown Error * description: The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers. */ | 520 /** * code: 521 * message: Web Server Is Down * description: The origin server has refused the connection from Cloudflare. */ | 521 /** * code: 522 * message: Connection Timed Out * description: Cloudflare could not negotiate a TCP handshake with the origin server. */ | 522 /** * code: 523 * message: Origin Is Unreachable * description: Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect. */ | 523 /** * code: 524 * message: A Timeout Occurred * description: Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response. */ | 524 /** * code: 525 * message: SSL Handshake Failed * description: Cloudflare could not negotiate a SSL/TLS handshake with the origin server. */ | 525 /** * code: 526 * message: Invalid SSL Certificate * description: Used by Cloudflare and Cloud Foundry's gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented. */ | 526 /** * code: 527 * message: Railgun Listener to Origin Error * description: Error 527 indicates that the request timed out or failed after the WAN connection had been established. */ | 527 /** * code: 530 * message: Origin DNS Error * description: Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server. */ | 530 /** * code: 598 * message: Network Read Timeout Error * description: Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy. */ | 598; export type HTTP_STATUS = /** * code: 100 * message: Continue * description: The server has received the request headers, and the client should proceed to send the request body. */ 100 /** * code: 101 * message: Switching Protocols * description: The requester has asked the server to switch protocols. */ | 101 /** * code: 102 * message: Processing * description: This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost. */ | 102 /** * code: 103 * message: Early Hints * description: Used to return some response headers before final HTTP message. */ | 103 /** * code: 200 * message: OK * description: The request is OK (this is the standard response for successful HTTP requests). */ | 200 /** * code: 201 * message: Created * description: The request has been fulfilled, and a new resource is created. */ | 201 /** * code: 202 * message: Accepted * description: The request has been accepted for processing, but the processing has not been completed. */ | 202 /** * code: 203 * message: Non-Authoritative Information * description: The request has been successfully processed, but is returning information that may be from another source. */ | 203 /** * code: 204 * message: No Content * description: The request has been successfully processed, but is not returning any content. */ | 204 /** * code: 205 * message: Reset Content * description: The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view. */ | 205 /** * code: 206 * message: Partial Content * description: The server is delivering only part of the resource due to a range header sent by the client. */ | 206 /** * code: 207 * message: Multi-Status * description: The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made. */ | 207 /** * code: 208 * message: Already Reported * description: The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again. */ | 208 /** * code: 218 * message: This is fine (Apache Web Server) * description: Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. */ | 218 /** * code: 226 * message: IM Used * description: The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance. */ | 226 /** * code: 300 * message: Multiple Choices * description: A link list. The user can select a link and go to that location. Maximum five addresses. */ | 300 /** * code: 301 * message: Moved Permanently * description: The requested page has moved to a new URL. */ | 301 /** * code: 302 * message: Found * description: The requested page has moved temporarily to a new URL. */ | 302 /** * code: 303 * message: See Other * description: The requested page can be found under a different URL. */ | 303 /** * code: 304 * message: Not Modified * description: Indicates the requested page has not been modified since last requested. */ | 304 /** * code: 306 * message: Switch Proxy * description: No longer used. Originally meant "Subsequent requests should use the specified proxy." */ | 306 /** * code: 307 * message: Temporary Redirect * description: The requested page has moved temporarily to a new URL. */ | 307 /** * code: 308 * message: Resume Incomplete * description: Used in the resumable requests proposal to resume aborted PUT or POST requests. */ | 308 /** * code: 400 * message: Bad Request * description: The request cannot be fulfilled due to bad syntax. */ | 400 /** * code: 401 * message: Unauthorized * description: The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided. */ | 401 /** * code: 402 * message: Payment Required * description: Not yet implemented by RFC standards, but reserved for future use. */ | 402 /** * code: 403 * message: Forbidden * description: The request was a legal request, but the server is refusing to respond to it. */ | 403 /** * code: 404 * message: Not Found * description: The requested page could not be found but may be available again in the future. */ | 404 /** * code: 405 * message: Method Not Allowed * description: A request was made of a page using a request method not supported by that page. */ | 405 /** * code: 406 * message: Not Acceptable * description: The server can only generate a response that is not accepted by the client. */ | 406 /** * code: 407 * message: Proxy Authentication Required * description: The client must first authenticate itself with the proxy. */ | 407 /** * code: 408 * message: Request Timeout * description: The server timed out waiting for the request. */ | 408 /** * code: 409 * message: Conflict * description: The request could not be completed because of a conflict in the request. */ | 409 /** * code: 410 * message: Gone * description: The requested page is no longer available. */ | 410 /** * code: 411 * message: Length Required * description: The "Content-Length" is not defined. The server will not accept the request without it. */ | 411 /** * code: 412 * message: Precondition Failed * description: The precondition given in the request evaluated to false by the server. */ | 412 /** * code: 413 * message: Request Entity Too Large * description: The server will not accept the request, because the request entity is too large. */ | 413 /** * code: 414 * message: Request-URI Too Long * description: The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information. */ | 414 /** * code: 415 * message: Unsupported Media Type * description: The server will not accept the request, because the media type is not supported. */ | 415 /** * code: 416 * message: Requested Range Not Satisfiable * description: The client has asked for a portion of the file, but the server cannot supply that portion. */ | 416 /** * code: 417 * message: Expectation Failed * description: The server cannot meet the requirements of the Expect request-header field. */ | 417 /** * code: 418 * message: I'm a teapot * description: 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. */ | 418 /** * code: 419 * message: Page Expired (Laravel Framework) * description: Used by the Laravel Framework when a CSRF Token is missing or expired. */ | 419 /** * code: 420 * message: Method Failure (Spring Framework) * description: A deprecated response used by the Spring Framework when a method has failed. */ | 420 /** * code: 421 * message: Misdirected Request * description: The request was directed at a server that is not able to produce a response (for example because a connection reuse). */ | 421 /** * code: 422 * message: Unprocessable Entity * description: The request was well-formed but was unable to be followed due to semantic errors. */ | 422 /** * code: 423 * message: Locked * description: The resource that is being accessed is locked. */ | 423 /** * code: 424 * message: Failed Dependency * description: The request failed due to failure of a previous request (e.g., a PROPPATCH). */ | 424 /** * code: 426 * message: Upgrade Required * description: The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field. */ | 426 /** * code: 428 * message: Precondition Required * description: The origin server requires the request to be conditional. */ | 428 /** * code: 429 * message: Too Many Requests * description: The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes. */ | 429 /** * code: 431 * message: Request Header Fields Too Large * description: The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large. */ | 431 /** * code: 440 * message: Login Time-out * description: The client's session has expired and must log in again. (IIS) */ | 440 /** * code: 444 * message: Connection Closed Without Response * description: A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests. */ | 444 /** * code: 449 * message: Retry With * description: The server cannot honour the request because the user has not provided the required information. (IIS) */ | 449 /** * code: 450 * message: Blocked by Windows Parental Controls * description: The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage. */ | 450 /** * code: 451 * message: Unavailable For Legal Reasons * description: A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource. */ | 451 /** * code: 494 * message: Request Header Too Large * description: Used by nginx to indicate the client sent too large of a request or header line that is too long. */ | 494 /** * code: 495 * message: SSL Certificate Error * description: An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate. */ | 495 /** * code: 496 * message: SSL Certificate Required * description: An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided. */ | 496 /** * code: 497 * message: HTTP Request Sent to HTTPS Port * description: An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests. */ | 497 /** * code: 498 * message: Invalid Token (Esri) * description: Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token. */ | 498 /** * code: 499 * message: Client Closed Request * description: A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request. */ | 499 /** * code: 500 * message: Internal Server Error * description: An error has occurred in a server side script, a no more specific message is suitable. */ | 500 /** * code: 501 * message: Not Implemented * description: The server either does not recognize the request method, or it lacks the ability to fulfill the request. */ | 501 /** * code: 502 * message: Bad Gateway * description: The server was acting as a gateway or proxy and received an invalid response from the upstream server. */ | 502 /** * code: 503 * message: Service Unavailable * description: The server is currently unavailable (overloaded or down). */ | 503 /** * code: 504 * message: Gateway Timeout * description: The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. */ | 504 /** * code: 505 * message: HTTP Version Not Supported * description: The server does not support the HTTP protocol version used in the request. */ | 505 /** * code: 506 * message: Variant Also Negotiates * description: Transparent content negotiation for the request results in a circular reference. */ | 506 /** * code: 507 * message: Insufficient Storage * description: The server is unable to store the representation needed to complete the request. */ | 507 /** * code: 508 * message: Loop Detected * description: The server detected an infinite loop while processing the request (sent instead of 208 Already Reported). */ | 508 /** * code: 509 * message: Bandwidth Limit Exceeded * description: The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers. */ | 509 /** * code: 510 * message: Not Extended * description: Further extensions to the request are required for the server to fulfil it. */ | 510 /** * code: 511 * message: Network Authentication Required * description: The client needs to authenticate to gain network access. */ | 511 /** * code: 520 * message: Unknown Error * description: The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers. */ | 520 /** * code: 521 * message: Web Server Is Down * description: The origin server has refused the connection from Cloudflare. */ | 521 /** * code: 522 * message: Connection Timed Out * description: Cloudflare could not negotiate a TCP handshake with the origin server. */ | 522 /** * code: 523 * message: Origin Is Unreachable * description: Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect. */ | 523 /** * code: 524 * message: A Timeout Occurred * description: Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response. */ | 524 /** * code: 525 * message: SSL Handshake Failed * description: Cloudflare could not negotiate a SSL/TLS handshake with the origin server. */ | 525 /** * code: 526 * message: Invalid SSL Certificate * description: Used by Cloudflare and Cloud Foundry's gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented. */ | 526 /** * code: 527 * message: Railgun Listener to Origin Error * description: Error 527 indicates that the request timed out or failed after the WAN connection had been established. */ | 527 /** * code: 530 * message: Origin DNS Error * description: Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server. */ | 530 /** * code: 598 * message: Network Read Timeout Error * description: Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy. */ | 598;