HTTP status codes are three-digit codes used to indicate the status of a response from a server to a client. These codes are defined by the HTTP/1.1 specification and are widely used in web applications to communicate the outcome of a request.
Common HTTP Status Codes
Here are some of the most common HTTP status codes:
- 200 OK: The request has succeeded.
- 404 Not Found: The requested resource could not be found.
- 500 Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request.
Status Code Categories
HTTP status codes are divided into five categories:
- 1xx Informational: Request received, continuing process.
- 2xx Success: The action was successfully received, understood, and accepted.
- 3xx Redirection: Further action must be taken in order to complete the request.
- 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
- 5xx Server Error: The server failed to fulfill an apparently valid request.
Example
If you try to access a webpage that does not exist, you will often see a 404 Not Found error.
404 Not Found
For more information on HTTP status codes, you can visit our HTTP Status Codes Guide.