System Design · Junior · Question 7 of 75
What do the HTTP status code classes mean?
- ✓Correct answer: 2xx - success, 3xx - redirect, 4xx - client error, 5xx - server error
- 22xx - client error, 3xx - success, 4xx - server error, 5xx - redirect
- 32xx - cached response, 4xx - stale response, 5xx - partial response
Explanation
Examples: 200 OK, 201 Created, 204 No Content; 301/302 redirects, 304 Not Modified; 400 Bad Request, 401, 403, 404, 409 Conflict, 422, 429; 500, 502, 503, 504. The class also drives client logic: 4xx are usually not retried, while 5xx and network errors can be.