When you try to open a site through a web browser, HTTP requests are sent to the hosting server, to which the client receives responses. Sometimes errors occur when uploading a website to hosting or during its development.
To find out about the results of the execution of queries, special codes are used. All codes can be divided into 5 classes:
- with code 100-199 — informative,
- with code 200-299 — successful,
- with code 300-399 — redirects,
- with code 400-499 — client errors,
- with code 500-599 — server errors.
In this article, we'll look at the client-side HTTP response codes. That is, such responses arise from an error on the part of a person or a client application that a person uses, based on the client-server interaction model.
||This response means that the server does not understand the request due to invalid syntax.
||Authentication is required to receive the requested response. The status is similar to the 403 status, but in this case, authentication is possible
||This response code is reserved for future use. The original purpose of creating this code is for use for digital payment systems (currently not used)
||The client does not have permission to access the content, so the server refuses to give a proper response
||The server cannot find the requested resource
||Method Not Allowed
||The server knows about the requested method, but it has been deactivated and cannot be used. The two required methods, GET and HEAD, should never be deactivated and should not return this error code
||This response is sent when the web server, after performing a server-driven content negotiation, does not find any content that matches the criteria obtained from the "user agent"
||Proxy Authentication Required
||This response code is similar to 401 code, only authentication is required for the proxy server
||A response with such a code can come even without a previous request. It means that the server would like to disconnect this unused connection.
||This response is sent when the request conflicts with the current state of the server.
||This response is sent when the requested content has been removed from the server.
||The request was denied because the server requires the "Content-Length" header, but it is not specified
||The client has specified in his headers conditions that the server cannot fulfill
||Request Entity Too Large
||The request size exceeds the limit announced by the server. The server can close the connection by returning a "Retry-After" header
||Request-URI Too Long
||The URI requested by the client is too long for the server to process
||Unsupported Media Type
||The media format of the requested data is not supported by the server, therefore the request is rejected
||Requested Range Not Satisfiable
||The range specified by the "Range" request header could not be executed; it may be outside the passed URI
||This response code means that the expectation received from the "Expect" request header could not be fulfilled by the server