📡 HTTP Status Codes
Complete reference for all HTTP status codes (1xx-5xx). Descriptions, common use cases, and troubleshooting tips.
📖 Understanding HTTP Status Codes
HTTP status codes are three-digit numbers returned by web servers to indicate the outcome of an HTTP request. They are grouped into five categories: 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), and 5xx (Server Error).
As a web developer, you'll most commonly encounter 200 (OK), 301/302 (redirects), 404 (Not Found), 403 (Forbidden), and 500 (Internal Server Error). Understanding these codes is crucial for debugging API integrations, monitoring server health, and implementing proper error handling.
❓ Frequently Asked Questions
301 is a permanent redirect — it tells browsers and search engines that the resource has permanently moved. Use for domain changes, URL restructuring. 302 is a temporary redirect — the original URL may still be valid later. Use for maintenance pages, A/B testing, or temporary moves. For SEO, 301 passes link equity (PageRank) to the new URL; 302 does not.
Implement exponential backoff: wait 1s, then 2s, then 4s between retries. Check the Retry-After header for server-recommended delay. Consider caching responses, reducing request frequency, or implementing request queuing on the client side.
📖 What Are HTTP Status Codes?
HTTP status codes are three-digit responses from web servers indicating the result of a client's request. They're grouped into five classes: 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), and 5xx (Server Error). Understanding these codes is essential for web development, API design, debugging, and SEO.
Our comprehensive reference includes all standard status codes with descriptions, common causes, and troubleshooting guidance. Searchable and filterable by category.
🚀 How to Use This Tool
- Browse status codes by category (1xx through 5xx)
- Search for specific status codes or descriptions
- Read detailed explanations and common causes
- Use the reference during API development and debugging
💡 Tips & Best Practices
Developer Tip: Most common: 200 (OK), 301 (Permanent Redirect), 404 (Not Found), 500 (Server Error). For APIs: use 201 for created resources, 204 for successful deletions, 422 for validation errors.