HTTP Status Codes Explained: Common Codes You Should Know

In the last blog, we learned about HTTP and its methods. Now, let's dive into HTTP status codes. I'm sure you've encountered classics like the 404 page not found error or the 408 request timeout error. These are examples of HTTP status codes.
What is an HTTP Status Code?
A three-digit response from the server to the client.
Also known as a response status code.
Acts as a way for the server to communicate with the browser (client)..
Different Types of HTTP Status Codes:
Various classes of codes provide different types of information.
HTTP status codes are divided into five categories.
1) 1xx - Informational: The server has received the request and is continuing the process. For ex-
100: Continue
102: processing
2) 2xx - Success: The request was successful and the browser has received the expected information. For example:
200: Ok
201: Created
202: Accepted.
3) 3xx - Redirection: You have been redirected, and completing the request requires further action. For example:
307 : Temporary Redirected.
308 : Permanent Redirected
4) 4xx - Client Error: The website or page could not be reached because either the page is unavailable or the request contains bad syntax. For example:
400: bad request
404: Not found
5) 5xx - Server Error: While the request seems valid, the server could not complete it. For Example:
504: Gateway Timeout
502: Bad Gateway
Subscribe to my newsletter
Read articles from Nittin Singh Yadav directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by