Important HTTP Status Codes
Today we will show you the list of the important HTTP Status Codes.
Checkout more articles on JavaScript/Node.js
- Top 8 popular npm packages for React and Node.js
- Barcode scanner in React
- Confirm a stripe paymentIntent using Node.js
- How to add Google Analytics to the React App
- How to consume SOAP service in Node.js
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
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..!! π