diff --git a/src/Utility/HttpStatus.php b/src/Utility/HttpStatus.php index c1faa0d2c..968b95f7a 100644 --- a/src/Utility/HttpStatus.php +++ b/src/Utility/HttpStatus.php @@ -26,7 +26,8 @@ final class HttpStatus { /** * HTTP response code 100 - Continue. * - * This interim response indicates that the client should continue the request or ignore the response if the request is already finished. + * This interim response indicates that the client should continue the request or ignore the response if the request + * is already finished. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100 @@ -36,7 +37,8 @@ final class HttpStatus { /** * HTTP response code 101 - Switching Protocols. * - * This code is sent in response to an Upgrade request header from the client, and indicates the protocol the server is switching to. + * This code is sent in response to an Upgrade request header from the client, and indicates the protocol the server + * is switching to. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101 @@ -56,7 +58,9 @@ final class HttpStatus { /** * HTTP response code 103 - Early Hints. * - * This status code is primarily intended to be used with the Link header, letting the user agent start preloading resources while the server prepares a response or preconnects to an origin from which the page will need resources. + * This status code is primarily intended to be used with the Link header, letting the user agent start preloading + * resources while the server prepares a response or preconnects to an origin from which the page will need + * resources. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103 @@ -98,7 +102,9 @@ final class HttpStatus { * * The request has been received but not yet acted upon. * - * It is noncommittal, since there is no way in HTTP to later send an asynchronous response indicating the outcome of the request. It is intended for cases where another process or server handles the request, or for batch processing. + * It is noncommittal, since there is no way in HTTP to later send an asynchronous response indicating the outcome + * of the request. It is intended for cases where another process or server handles the request, or for batch + * processing. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202 @@ -108,9 +114,11 @@ final class HttpStatus { /** * HTTP response code 203 - Non-Authoritative Information. * - * This response code means the returned metadata is not exactly the same as is available from the origin server, but is collected from a local or a third-party copy. + * This response code means the returned metadata is not exactly the same as is available from the origin server, + * but is collected from a local or a third-party copy. * - * This is mostly used for mirrors or backups of another resource. Except for that specific case, the 200 OK response is preferred to this status. + * This is mostly used for mirrors or backups of another resource. Except for that specific case, the 200 OK + * response is preferred to this status. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203 @@ -162,7 +170,8 @@ final class HttpStatus { /** * HTTP response code 208 - Already Reported (WebDAV). * - * Used inside a response element to avoid enumerating the internal members of multiple bindings to the same collection. + * Used inside a response element to avoid enumerating the internal members of multiple bindings to + * the same collection. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208 @@ -172,7 +181,8 @@ final class HttpStatus { /** * HTTP response code 226 - IM Used (HTTP Delta encoding). * - * This is mostly used for mirrors or backups of another resource. Except for that specific case, the 200 OK response is preferred to this status. + * This is mostly used for mirrors or backups of another resource. Except for that specific case, the 200 OK + * response is preferred to this status. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226 @@ -186,7 +196,8 @@ final class HttpStatus { * * The request has more than one possible response. * - * The user agent or user should choose one of them. (There is no standardized way of choosing one of the responses, but HTML links to the possibilities are recommended so the user can pick.) + * The user agent or user should choose one of them. (There is no standardized way of choosing one of the responses, + * but HTML links to the possibilities are recommended so the user can pick.) * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300 @@ -210,7 +221,8 @@ final class HttpStatus { * * This response code means that the URI of requested resource has been changed temporarily. * - * Further changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests. + * Further changes in the URI might be made in the future. Therefore, this same URI should be used by the client in + * future requests. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302 @@ -220,7 +232,8 @@ final class HttpStatus { /** * HTTP response code 303 - See Other. * - * The server sent this response to direct the client to get the requested resource at another URI with a GET request. + * The server sent this response to direct the client to get the requested resource at another URI with a GET + * request. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303 @@ -230,7 +243,8 @@ final class HttpStatus { /** * HTTP response code 304 - Not Modified. * - * This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response. + * This is used for caching purposes. It tells the client that the response has not been modified, so the client can + * continue to use the same cached version of the response. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304 @@ -240,7 +254,8 @@ final class HttpStatus { /** * HTTP response code 305 - Use Proxy (DEPRECATED!). * - * Was defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. + * Was defined in a previous version of the HTTP specification to indicate that a requested response must be + * accessed by a proxy. * * It has been deprecated due to security concerns regarding in-band configuration of a proxy. * @@ -264,9 +279,11 @@ final class HttpStatus { /** * HTTP response code 307 - Temporary Redirect. * - * The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request. + * The server sends this response to direct the client to get the requested resource at another URI with same method + * that was used in the prior request. * - * This has the same semantics as the 302 Found HTTP response code, with the exception that the user agent must not change the HTTP method used: If a POST was used in the first request, a POST must be used in the second request. + * This has the same semantics as the 302 Found HTTP response code, with the exception that the user agent must not + * change the HTTP method used: If a POST was used in the first request, a POST must be used in the second request. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307 @@ -276,9 +293,12 @@ final class HttpStatus { /** * HTTP response code 308 - Permanent Redirect. * - * This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header. + * This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response + * header. * - * This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: If a POST was used in the first request, a POST must be used in the second request. + * This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user + * agent must not change the HTTP method used: If a POST was used in the first request, a POST must be used in the + * second request. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308 @@ -290,7 +310,8 @@ final class HttpStatus { /** * HTTP response code 400 - Bad Request. * - * The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). + * The server cannot or will not process the request due to something that is perceived to be a client error (e.g., + * malformed request syntax, invalid request message framing, or deceptive request routing). * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400 @@ -300,7 +321,8 @@ final class HttpStatus { /** * HTTP response code 401 - Unauthorized. * - * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response. + * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, + * the client must authenticate itself to get the requested response. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401 @@ -310,7 +332,8 @@ final class HttpStatus { /** * HTTP response code 402 - Payment Required (Experimental). * - * This response code is reserved for future use. The initial aim for creating this code was using it for digital payment systems, however this status code is used very rarely and no standard convention exists. + * This response code is reserved for future use. The initial aim for creating this code was using it for digital + * payment systems, however this status code is used very rarely and no standard convention exists. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402 @@ -320,7 +343,8 @@ final class HttpStatus { /** * HTTP response code 403 - Forbidden. * - * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. + * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to + * give the requested resource. * * Unlike 401 Unauthorized, the client's identity is known to the server. * @@ -336,7 +360,8 @@ final class HttpStatus { * * In the browser, this means the URL is not recognized. * - * In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 to hide the existence of a resource from an unauthorized client. + * In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also + * send this response instead of 403 to hide the existence of a resource from an unauthorized client. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404 @@ -346,7 +371,8 @@ final class HttpStatus { /** * HTTP response code 405 - Method Not Allowed. * - * The request method is known by the server but is not supported by the target resource. For example, an API may not allow calling DELETE to remove a resource. + * The request method is known by the server but is not supported by the target resource. For example, an API may + * not allow calling DELETE to remove a resource. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 @@ -356,7 +382,8 @@ final class HttpStatus { /** * HTTP response code 406 - Not Acceptable. * - * This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent. + * This response is sent when the web server, after performing server-driven content negotiation, doesn't find any + * content that conforms to the criteria given by the user agent. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406 @@ -378,7 +405,8 @@ final class HttpStatus { * * This response is sent on an idle connection by some servers, even without any previous request by the client. * - * It means that the server would like to shut down this unused connection. This response is used much more since some browsers, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing. + * It means that the server would like to shut down this unused connection. This response is used much more since + * some browsers, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing. * * Also note that some servers merely shut down the connection without sending this message. * @@ -400,7 +428,8 @@ final class HttpStatus { /** * HTTP response code 410 - Gone. * - * This response is sent when the requested content has been permanently deleted from server, with no forwarding address. + * This response is sent when the requested content has been permanently deleted from server, with no forwarding + * address. * * Clients are expected to remove their caches and links to the resource. * The HTTP specification intends this status code to be used for "limited-time, promotional services". @@ -434,7 +463,8 @@ final class HttpStatus { /** * HTTP response code 413 - Payload Too Large. * - * Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field. + * Request entity is larger than limits defined by server; the server might close the connection or return an + * Retry-After header field. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413 @@ -464,7 +494,8 @@ final class HttpStatus { /** * HTTP response code 416 - Range Not Satisfiable. * - * The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data. + * The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is + * outside the size of the target URI's data. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416 @@ -496,7 +527,8 @@ final class HttpStatus { * * 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. + * 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. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421 @@ -546,7 +578,8 @@ final class HttpStatus { /** * HTTP response code 426 - Upgrade Required. * - * The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol. + * The server refuses to perform the request using the current protocol but might be willing to do so after the + * client upgrades to a different protocol. * * The server sends an Upgrade header in a 426 response to indicate the required protocol(s). * @@ -560,7 +593,8 @@ final class HttpStatus { * * The origin server requires the request to be conditional. * - * Intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict. + * Intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it + * back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428 @@ -616,7 +650,8 @@ final class HttpStatus { * * The request method is not supported by the server and cannot be handled. * - * The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD. + * The only methods that servers are required to support (and therefore that must not return this code) are GET and + * HEAD. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501 @@ -626,7 +661,8 @@ final class HttpStatus { /** * HTTP response code 502 - Bad Gateway. * - * This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response. + * This error response means that the server, while working as a gateway to get a response needed to handle the + * request, got an invalid response. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502 @@ -642,7 +678,10 @@ final class HttpStatus { * * Note that together with this response, a user-friendly page explaining the problem should be sent. * - * This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, contain the estimated time for the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached. + * This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, + * contain the estimated time for the recovery of the service. The webmaster must also take care about the + * caching-related headers that are sent along with this response, as these temporary condition responses should + * usually not be cached. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503 @@ -672,7 +711,8 @@ final class HttpStatus { /** * HTTP response code 506 - Variant Also Negotiates. * - * The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process. + * The server has an internal configuration error: the chosen variant resource is configured to engage in + * transparent content negotiation itself, and is therefore not a proper end point in the negotiation process. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506 @@ -682,7 +722,8 @@ final class HttpStatus { /** * HTTP response code 507 - Insufficient Storage (WebDAV). * - * The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. + * The method could not be performed on the resource because the server is unable to store the representation needed + * to successfully complete the request. * * @var string * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507