Pages - Menu

Saturday, 9 May 2020

What are HTTP Status Codes?


HTTP Status Code Is 3-digit integer in which the first digit of the Status-Code defines the class of response. Response Header of each API response contains the HTTP Status Code. HTTP Status Codes are grouped into five categories based upon the first number.

HTTP Status Code with Description

1.
1XX
Informational

2.
2XX
Success

3.
3XX
Redirection

4.
4XX
Client-Side Error

5.
5XX
Server-Side Error

Some of the commonly seen HTTP Status Codes are:

  • 200 (Request is Ok), 
  • 201 (Created),
  • 202 (Accepted), 
  • 204 (No Content), 
  • 301 (Moved Permanently), 
  • 400 (Bad Request), 
  • 401 (Unauthorized), 
  • 403 (Forbidden), 
  • 404 (Not Found), 
  • 500 (Internal Server Error), 
  • 502 (Bad Gateway), 
  • 503 (Service Unavailable) etc.



No comments:

Post a Comment