π HTTP STATUS CODE π
In this article, I will be talking about HTTP Status Codes. HTTP status codes are three-digit codes that are used to indicate the status of a HTTP request. They are returned by a web server in response to a clientβs request, and they provide information about the result of the request.
The first digit of a HTTP status code indicates the general class of the response. Some common classes of HTTP status codes are:
- 1xx: Informational
- 2xx: Success
- 3xx: Redirection
- 4xx: Client errors
- 5xx: Server errors
The second and third digits of a HTTP status code provide more specific information about the result of the request. Some common HTTP status codes are:
- 200: OK β The request was successful
- 301: Moved permanently β The requested resource has been permanently moved to a new URL
- 404: Not found β The requested resource could not be found
HTTP status codes are an important part of the HTTP protocol, as they provide information about the result of a request and can be used by clients and servers to handle errors and other situations.
π References Link :