HTTP status codes chia thành 5 nhóm: 1xx info, 2xx success, 3xx redirect, 4xx client error, 5xx server error — các code quan trọng nhất là 401/403, 301/302, 502/504.
1xx (Informational): 100 Continue, 101 Switching Protocols (WebSocket upgrade).
2xx (Success): 200 OK, 201 Created, 204 No Content (DELETE thành công không có body).
3xx (Redirect): 301 Moved Permanently (SEO: cập nhật bookmark, search engine index URL mới), 302 Found (temporary, không thay đổi index), 303 See Other (sau POST → redirect GET), 304 Not Modified (cache valid, không gửi body).
4xx (Client Error): 400 Bad Request (invalid input), 401 Unauthorized (chưa authenticate — cần login), 403 Forbidden (đã authenticate nhưng không có quyền — không phải vấn đề login), 404 Not Found, 405 Method Not Allowed, 422 Unprocessable Entity (validation error trong REST API), 429 Too Many Requests (rate limited).
5xx (Server Error): 500 Internal Server Error (generic server bug), 502 Bad Gateway (reverse proxy nhận response invalid từ upstream server — upstream crash hoặc send malformed response), 503 Service Unavailable (server overloaded/maintenance), 504 Gateway Timeout (reverse proxy không nhận được response từ upstream trong thời gian quy định — upstream quá chậm).