HTTP Status Codes
HTTP response codes indicate the outcome of an HTTP request. Regardless the information present in the HTTP response message body, the client will respond accordingly based on the received response status code.
1xx: Informational
1xx status codes are part of the HTTP protocol's informational response category. They are used to indicate that the server has received the client's request and the process is continuing.
These codes are informational in nature and don't contain a final response. Instead, they serve to acknowledge that the server has received the request and is in the process of handling it.
2xx: Success
2xx status codes are part of the HTTP protocol's success response category. They indicate that the client's request was successful, and the server has processed it without any errors.
These codes signify that the request has been received, understood, and accepted by the server.
3xx: Redirection
3xx status codes belong to the HTTP protocol's redirection response category. They inform the client that additional action is required to complete the request.
These codes are used when a resource has been moved to a different URL or when the client needs to access a different resource to fulfill their original request.
4xx: Client Error
4xx status codes are part of the HTTP protocol's client error response category. They inform the client that there was an issue with their request, and the server cannot fulfill it.
These codes indicate that the client's request contains errors, such as incorrect syntax or invalid parameters, preventing the server from processing it.
5xx: Server Error
5xx status codes belong to the HTTP protocol's server error response category. They inform the client that the request cannot be processed due to an issue on the server's side.
These codes indicate that the server encountered an error while trying to fulfill the client's request, usually due to a lack of available resources or unexpected conditions.
Additional Status Codes
In addition to the standard HTTP status codes, there are also other additional status codes to address various situations. These codes cover specific scenarios such as indicating that a response is stale (110) or that revalidation has failed (111).
Other codes deal with disconnected operations (112) and heuristic expiration (113) to manage caching and performance. Miscellaneous warnings (199, 299) offer informative messages for developers and users. Additionally, code 999 signifies unauthorized access, highlighting the importance of security measures on the web.