HTTP (Hypertext Transfer Protocol) is the fundamental element of any type of online communication. To respond to a client request, the server sends An HTTP response status code and other information in the form of a response object, letting the client know if the request was successful. These three-digit numerical status codes convey important details about the request’s success, failure, or other cases.
HTTP response status codes are vastly divided into five categories:
These codes range from 100–199 and indicate that the request was received and the server is continuing to process it.
These codes range from 200–299 and indicate that the server successfully received, understood, and accepted the request.
These codes range from 300–399 and indicate the need for subsequent actions to complete the request. They are generally used to indicate that the requested resource has been relocated or is momentarily unavailable.
These codes range from 400–499 and indicate a mistake from the client while sending the request, hence, the server cannot or will not process the request.
These codes range from 500–599 and indicate issues at the server side while fulfilling a valid request. These codes also imply that the server is aware of the error.
HTTP response status codes are like signals that facilitate smooth communication between web browsers (clients) and web servers. They act like status indicators, providing valuable information about how a request is going. This is helpful for developers and website administrators because they can quickly identify and troubleshoot issues. Understanding these codes also enables them to create robust web applications that can gracefully handle errors and provide users meaningful feedback whenever something goes wrong.
Status Codes | Meaning | Status Codes | Meaning |
100 | Continue | 400 | Bad Request |
101 | Switching Protocols | 401 | Unauthorized |
102 | Processing | 403 | Forbidden |
200 | OK | 404 | Not Found |
201 | Created | 408 | Request Timeout |
202 | Accepted | 417 | Expectation Failed |
204 | No Content | 429 | Too Many Requests |
206 | Partial Content | 500 | Internal Server Error |
300 | Multiple Choices | 502 | Bad Gateway |
301 | Moved Permanently | 503 | Service Unavailable |
307 | Temporary Redirect | 504 | Gateway Timeout |
308 | Permanent Redirect | 505 | HTTP Version Not Supported |
Free Resources