HTTP Status Code Reference
A quick-reference for the HTTP status codes you’ll actually encounter in web development.
| Code | Name | Use When |
|---|---|---|
| 200 | OK | Request succeeded |
| 201 | Created | Resource was created |
| 204 | No Content | Success, nothing to return |
| 301 | Moved Permanently | URL changed forever |
| 400 | Bad Request | Client sent invalid data |
| 401 | Unauthorized | Authentication required |
| 403 | Forbidden | Authenticated but not allowed |
| 404 | Not Found | Resource doesn’t exist |
| 422 | Unprocessable Entity | Validation failed |
| 429 | Too Many Requests | Rate limited |
| 500 | Internal Server Error | Something broke on our end |
Tips
Always return a JSON body with error details for 4xx responses. Include a machine-readable error code and a human-readable message.