HTTP Status Codes
Reference guide for all HTTP status codes
Showing 29 of 29 status codes
1xx Informational
2xx Success
3xx Redirection
4xx Client Errors
5xx Server Errors
What are HTTP status codes?
HTTP status codes are standardized three-digit codes that servers return with every HTTP response. They communicate, at a glance, whether a request succeeded, failed, or requires additional action. Understanding them is fundamental to web development, API integration, and debugging.
Status codes are grouped into five classes based on their first digit. This lets you quickly categorize a response even if you don't recognise the specific code.
How to use this reference
Search by code number or keyword โ typing "redirect" shows all 3xx codes, typing "500" shows server error codes, typing "auth" shows authentication-related codes.
Filter by category using the buttons to focus on a specific class of responses.
Click any code to expand it and see the full description with practical examples.
The five status code classes
1xx Informational โ the request was received and the process is continuing. These are rarely seen in normal browsing.
2xx Success โ the request was successfully received, understood, and accepted. 200 OK is the most common response for successful requests.
3xx Redirection โ further action is needed to complete the request, usually by following a redirect to a new URL.
4xx Client Errors โ the request contains bad syntax or cannot be fulfilled by the server. The problem is on the client side. 404 Not Found is the most recognizable example.
5xx Server Errors โ the server failed to fulfill an apparently valid request. The problem is on the server side.
Status codes in REST API design
Good API design uses status codes semantically โ the code alone should communicate what happened:
GET /users/123โ200 OKwith user data, or404 Not Foundif user doesn't existPOST /usersโ201 Createdwith the new user and aLocationheaderPUT /users/123โ200 OKwith updated user, or204 No Contentif no body is returnedDELETE /users/123โ204 No Contenton successPOST /loginโ200 OKon success,401 Unauthorizedfor wrong credentials- Validation failure โ
422 Unprocessable Entitywith error details - Rate limit exceeded โ
429 Too Many Requestswith retry information