HTTP Status Code Generator
This example generates common HTTP status codes with their names and descriptions. Use it as a quick reference when building APIs or debugging HTTP responses. Click any status code to copy it to your clipboard.
Status Code Categories
| Category | Range | Purpose |
|---|---|---|
| Informational | 100-199 | Request received, processing continues |
| Success | 200-299 | Request successfully received and processed |
| Redirection | 300-399 | Further action needed to complete request |
| Client Error | 400-499 | Request contains bad syntax or cannot be fulfilled |
| Server Error | 500-599 | Server failed to fulfill valid request |
Most Common Status Codes
Success (2xx)
- 200 OK: Standard success response
- 201 Created: Resource created (include Location header)
- 202 Accepted: Request accepted for processing (async)
- 204 No Content: Success with no response body
Client Errors (4xx)
- 400 Bad Request: Malformed request syntax
- 401 Unauthorized: Authentication required
- 403 Forbidden: Authenticated but not authorized
- 404 Not Found: Resource doesn’t exist
- 405 Method Not Allowed: HTTP method not supported
- 409 Conflict: Request conflicts with current state
- 422 Unprocessable Entity: Validation errors
- 429 Too Many Requests: Rate limit exceeded
Server Errors (5xx)
- 500 Internal Server Error: Generic server failure
- 502 Bad Gateway: Invalid response from upstream
- 503 Service Unavailable: Server temporarily down
- 504 Gateway Timeout: Upstream server timed out
How to Use
- Browse the list of status codes above
- Click any code to copy it to your clipboard
- Use the code in your API responses with the appropriate message
Tips for API Design
- Always include a human-readable
messagefield in error responses - Use 422 instead of 400 for validation errors (more specific)
- Include
Retry-Afterheader with 429 responses - Use 201 with
Locationheader when creating resources - Return 204 for successful DELETE operations