HTTP HEADER STATUS CODE: The Silent Communicators of the Web!!
A lot of work happens on behind the scenes when you visit a website, often without your knowledge. The HTTP header status code, a three-digit number that your browser receives from the server indicating the status of your request, is one of the key elements at work. Let's explore the purpose of these codes and why they are important...
HTTP Header Status Codes:
HTTP header status codes are part of the response a web server sends back to a client’s request. When you type a URL into your browser or click a link, your browser sends a request to the server hosting that site. The server then processes the request and returns a status code in the response header, along with the requested resource or an error message.
Categories:
1xx – Informational Responses:
These codes show that the request was received, understood and that work is still in progress. In usual web browsing, these are rare.
2xx – Live:
This range of codes indicates that the request was successfully received, understood, and accepted. The most usual of them is 200 OK, indicating that everything went as per planned.
3xx – Redirection:
These codes inform the client that more steps are required to fulfill the request. For instance, 301 relocated Permanently indicates a permanent relocation of the resource to a new URL, but 302 Found (or temporarily relocated) indicates a temporary redirection.
4xx – Client Errors:
These codes suggest that the client's request contains an error. 404 Not Found is the most common error, indicating that the requested resource could not be found by the server. Another important one is 403 Forbidden, which indicates that while the server accepted the request, it is unable to fulfill it.
5xx – Server Errors:
These numbers indicate that a valid request was ignored by the server. The code 500 Internal Server Error is an common error that indicates a sudden problem that affected the server's ability to process the request.
Comments
Post a Comment