Beginner Log Reading #http-status #access-logs #nginx #api-errors

HTTP & API Error Logs

5 exercises — 401 vs 403 vs 404, nginx upstream timeouts, 503 vs 502 vs 504, latency degradation patterns, and diagnosing unexpected 404s.

0 / 5 completed
HTTP status code quick reference
  • 2xx — Success (200 OK, 201 Created, 204 No Content)
  • 3xx — Redirect (301 Moved Permanently, 302 Found, 304 Not Modified)
  • 4xx Client errors — 400 Bad Request, 401 Unauthenticated, 403 Forbidden, 404 Not Found, 409 Conflict, 422 Validation Error, 429 Rate Limited
  • 5xx Server errors — 500 Internal Error, 502 Bad Gateway, 503 Service Unavailable, 504 Gateway Timeout
  • upstream — the backend server that a proxy/load balancer forwards requests to
1 / 5
A web server access log shows:
203.0.113.15 - - [07/Apr/2026:03:14:22 +0000] "GET /api/users/profile HTTP/1.1" 401 512 "-" "Mozilla/5.0"

What does the 401 status code mean and what action should be taken?