What are HTTP Status Code?

Home / What is ? / What are HTTP Status Code ?

HTTP Status Code : HTTP (Hypertext Transfer Protocol) status codes are three-digit numbers returned by web servers to indicate the status of a client’s request. These codes provide valuable information about the outcome of the request and help in troubleshooting and understanding server responses. In this comprehensive guide, we will explore the various categories and common HTTP status codes, shedding light on their meanings and implications.

HTTP status codes are divided into different categories, each representing a specific class of responses.

HTTP responses are grouped into 5 classes

  • 1XX INFORMATIONAL
  • 2XX SUCCESS
  • 3XX REDIRECTION
  • 4XX CLIENT ERROR
  • 5XX SERVER ERROR

1XX : INFORMATIONAL

100 (Continue)

  • Indicates that everything so far is OK.
102 (Processing)
  • Server processing the request but no response is available yet.

2XX : SUCCESS

200 (Continue)
  • The request has succeeded
201 (Created)
  • This is typically the response sent after Post requests

3XX : REDIRECTION

300 (Multiple Choice)
  • The request has more than one possible response.
301 (Moved Permanently)
  • The URL has been changed permanently. The new URL is given.

4XX: CLIENT ERROR

400 (Bad Request)
  • The server could not understand the request due to invalid syntax.
401 (Unauthorized)
  • The client must authenticate itself to get the requested response.
404 (Not Found)
  • The server can not find the requested resource

5XX: SERVER ERROR

500 (Internal Server Error)
  • The server has encountered a situation it doesn’t know how to handle.
502 (Bad Gateway)
  • While getting a response needed to handle the request got an invalid response

Recent Post