Open In App

JSP – HTTP Status Codes

When the Client makes any requests to the server, the Status Codes are issued by the server as a response to the client’s request. So, in an application, we have the client and the server architecture. The server is the part that holds the particular web service or an API. The client is the actor who sends that HTTP request to the server. So, whenever the client sends the HTTP request, the server processes that request and it sends back the HTTP response.

The HTTP request contains the HTTP Status Code, body, as well as the headers. Out of these HTTP Status Code is a three-digit number. This three-digit number has a meaning associated with it and all the clients who invoke the HTTP request or receive the HTTP response are very well aware of the meaning of the HTTP Status Code. So, by reading the Status Code, they will understand what the response to that request is, and depending on whether it is a success or it is an error response, they can take the next steps for processing.



In this article, we are going to explore HTTP Status Codes, the different categories of these Status Codes, commonly used Codes, and finally, we will see the HTTP Status Code received in response by sending a few requests via Postman.



Note: HTTP Code are universally recognized by all the HTTP applications. It is irrespective of the technology.

HTTP Status Code Categories

The status code has been divided into total five groups. Which means the number of status codes we had has been divided into five groups. Within each group, there are different values that will have different meanings, which we will explore here. Five group is 1xx, 2xx, 3xx, 4xx and 5xx. Here x means that any value can come here. We also use x in ethical hacking that any matter can go there.

Commonly Used HTTP Status Codes

Here are some commonly used HTTP Status Codes in all of these categories:

2xx (Success):

3xx (Redirection):

4xx (Client Error):

5xx (Server Error):

Output of HTTP Status Codes in Postman

Below are few examples of HTTP Status Code in a few of the requests that you might encounter in Postman.

200 OK:

201 Created:

400 Bad Request:

404 Not Found:

406 Not Acceptable:

500 Internal Server Error:


Article Tags :