Important HTTP Status Codes

Today we will show you the list of the important HTTP Status Codes.

What are HTTP Status Codes?

Status codes are issued by a server in response to a client’s request made to the server. The first digit of the status code specifies one of five standard classes of responses.

List of the Standard Classes

  1. 1xx – Informational
  2. 2xx – Success
  3. 3xx – Redirection
  4. 4xx – Client Error
  5. 5XX – Server Error

1xx – Informational

It indicates that the request was received & understood by the server and its continuing the process.

  • 100 – Continue
  • 101 – Switching Protocols
  • 102 – Processing (WebDAV)
  • 103 – Early Hints

2xx – Success

It indicates the action requested by the client was received, understood, and accepted.

  • 200 – OK
  • 201 – Created
  • 202 – Accepted
  • 204 – No Content

3xx – Redirection

Many of these 3xx status codes are used in URL redirection or it indicates the client must take additional action to complete the request.

  • 301 – Moved Permanently
  • 302 – Found
  • 304 – Not Modified
  • 305 – Use Proxy

4xx – Client Error

This status code is intended for situations in which the error seems to have been caused by the client.

  • 400 – Bad Request
  • 401 – Unauthorized
  • 403 – Forbidden
  • 404 – Not Found

5xx – Server Error

It indicates that the server has encountered a situation where it doesn’t know how to handle a request.

  • 500 – Internal Server Error
  • 501 – Not Implemented
  • 502 – Bad Gateway
  • 504 – Gateway Timeout

These were not all the status codes that exist, there are many more codes that indicate different things.

You can find and learn more about http status codes on this website, with detailed information about that status code.

https://restapitutorial.com/httpstatuscodes.html

I hope you find this article helpful.
Thank you for reading. Happy Coding..!! ๐Ÿ™‚

If you found value in this article,
you can support us by buying me a coffee! โ˜•

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *