HTTP status codes are three-digit numeric responses sent by servers to clients indicating the result of a request. They categorize outcomes into informational, success, redirection, client error, and server error classes. Here's a quick guide:
Common Status Code Categories
- 1xx: 🟢 Informational (e.g.,
100 Continue
) - 2xx: ✅ Success (e.g.,
200 OK
,201 Created
) - 3xx: 🔄 Redirection (e.g.,
301 Moved Permanently
,302 Found
) - 4xx: ⚠️ Client Error (e.g.,
400 Bad Request
,404 Not Found
) - 5xx: ❌ Server Error (e.g.,
500 Internal Server Error
,503 Service Unavailable
)
Example Codes
Code | Meaning | Use Case |
---|---|---|
200 | ✅ OK | Successful request |
404 | ⚠️ Not Found | Resource unavailable |
500 | ❌ Internal Server Error | Server malfunction |
For deeper understanding, check our HTTP Methods guide to see how status codes interact with request types. 📚