HTTP status codes, also known as HTTP response codes, are small pieces of information that a client, such as a web browser, receives from a webserver. The purpose of the HTTP status codes is to give the client a rough idea of how the server has reacted to their request.
If everything has gone well, then the HTTP response code will simply acknowledge the client’s request and confirm that it has been processed. Conversely, if an error has occurred, the HTTP status codes can be useful in identifying the root cause of the issue.
The HTTP status codes are incorporated into the request-response cycle that is part of most client-server interactions. In fact, every time your web browser loads a URL, the server on the other end will include an HTTP status code in its response.
Every HTTP response sent by the server consists of a header and, optionally, a body. You will find the HTTP status code inside of the response’s header.
Unlike regular HTML and multimedia elements like images and video, HTTP codes are pieces of information that are sent by the server but are rarely displayed for the user. So, you can think of the HTTPS response codes as metadata. Just about the only time your web browser might display the HTTP status code is when there is an issue that you need to troubleshoot.
Being a part of the HTTP protocol, the list of HTTP status codes is maintained by the Internet Assigned Numbers Authority (IANA). That said, technology companies like CloudFlare, Microsoft, Twitter, and others have been known to extend the HTTP response codes specification by adding new codes that will only be used on their respective platforms.
To learn what HTTP status codes there are, what every code means, how the codes are organized, and how you can inspect them, continue reading or jump to the section that interests you.
- What Are HTTP Status Codes Used For?
- How Are HTTP Status Codes Organized?
- Which Are the Most Popular HTTP Status Codes?
- A Cheat Sheet of All HTTP Status Codes.
- 100: Continue
- 101: Switching Protocol
- 102: Processing
- 103: Early Hints
- 200: OK
- 201: Created
- 202: Accepted
- 203: Non-Authoritative Information
- 204: No Content
- 205: Reset Content
- 206: Partial Content
- 207: Multi-Status
- 208: Already Reported
- 226: IM Used
- 300: Multiple Choices
- 301: Moved Permanently
- 302: Found
- 303: See Other
- 304: Not Modified
- 305: Use Proxy
- 307: Temporary Redirect
- 308: Permanent Redirect
- 400: Bad Request
- 401: Unauthorized
- 402: Payment Required
- 403: Forbidden
- 404: Not Found
- 405: Method Not Allowed
- 406: Not Acceptable
- 407: Proxy Authentication Required
- 408: Request Timeout
- 409: Conflict
- 410: Gone
- 411: Length Required
- 412: Precondition Failed
- 413: Request Entity Too Large
- 414: Request-URI Too Long
- 415: Unsupported Media Type
- 416: Requested Range Not Satisfiable
- 417: Expectation Failed
- 418: I’m a Teapot
- 421: Misdirected Request
- 422: Unprocessable Entity
- 423: Locked
- 424: Failed Dependency
- 425: Too Early
- 426: Upgrade Required
- 428: Precondition Required
- 429: Too Many Requests
- 431: Request Header Fields Too Large
- 451: Unavailable For Legal Reasons
- 500: Internal Server Error
- 501: Not Implemented
- 502: Bad Gateway
- 503: Service Unavailable
- 504: Gateway Timeout
- 505: HTTP Version Not Supported
- 506: Variant Also Negotiates
- 507: Insufficient Storage
- 508: Loop Detected
- 510: Not Extended
- 511: Network Authentication Required
- How Can I Inspect the HTTP Status Codes on a Specific Webpage?
- Are the HTTP Status Codes Used in HTTPS?
- Are the HTTP Status Codes Used Outside of HTTP?
Start Your Own Website For Free!
What Are HTTP Status Codes Used For?
The purpose of the HTTP status codes is to give the web browser an idea of how the server has handled its request. Different codes mean different things and there are even codes that can instruct the web browser to take extra actions without the involvement of the user. We will cover all HTTP response codes and what they do a bit later in this article.
Overall, if you are a website owner or a developer, you should learn what the different HTTP response codes mean as this will help you tremendously in troubleshooting various issues as they come up. If you do not have a website yet but are still interested in learning about the various HTTP codes, then you can create a test website for free using our free hosting plan.
How Are HTTP Status Codes Organized?
Every HTTP response code is a 3-digit number. The first digit signifies the category to which the HTTP code belongs. The other two digits have no meaningful significance and are used only to uniquely identify every status code.
All HTTP status codes are split into five categories: