Use this HTTP status codes cheat sheet ⇣ as a reference to every HTTP status and HTTP error code, what each code means, why they are being generated, when the code might be a problem, and how to deal with the problems. Download this HTTP Status Codes Cheat Sheet ⇣
The internet is made up of two fundamental but very different things: clients and servers. This relationship between clients (like Chrome, Firefox, etc.) and servers (like websites, databases, emails, application, etc.), is called the client–server model.
Clients make requests to the server and the server responds.
HTTP status codes let us know the status of the request to the server is, if it was a success, had an error, or something in between.
An HTTP status code is a number that summarizes the response associated to it – Fernando Doglio, from his book “REST API Development with NodeJS”.
HTTP response status codes are grouped into five classes:
- 1XX status codes: Informational Requests
- 2XX status codes: Successful Requests
- 3XX status codes: Redirects
- 4XX status codes: Client Errors
- 5XX status codes: Server Errors
HTTP Status Codes Cheat Sheet
1XX Status Codes: Information Requests
2XX Status Codes: Successful Requests
- GET: The resource has been fetched and is transmitted in the message body.
- HEAD: The entity headers are in the message body.
- PUT or POST: The resource describing the result of the action is transmitted in the message body.
- TRACE: The message body contains the request message as received by the server
3XX Status Codes: Redirections
You can use this HTTP status code cheat sheet as a reference to all the possible HTTP status and HTTP error codes, what each code means, why they are being generated when the code might be a problem, and how to deal with the problems.
Click here to download 📥 this HTTP status codes cheat sheet and keep it close by as a quick reference of all status codes.
To sum it up:
- 1XX HTTP status codes are purely informational requests.
- 2XX HTTP status codes are success requests. The HTTP 200 OK success status response code indicates that the request has succeeded.
- 3XX HTTP status codes indicate a redirection. The most common 3xx HTTP status codes include the “301 moved permanently”, “302 found”, and “307 temporary redirect” HTTP status codes.
- 4XX status codes are client errors. The most common 4xx status codes are “404 not found” and the “410 gone” HTTP status code.
- 5XX HTTP status codes are server errors. The 5xx HTTP status code that is most common is the “503 service unavailable” status code.