The 5xx class indicates the server failed to fulfil an apparently valid request. These drive SLOs and on-call paging.

Table of 5xx Codes (selected)

CodeNameSummary
500Internal Server ErrorGeneric server failure.
501Not ImplementedMethod not supported at server.
502Bad GatewayUpstream error at proxy/gateway.
503Service UnavailableOverloaded or maintenance.
504Gateway TimeoutUpstream timeout.
507Insufficient StorageWebDAV storage failure.
508Loop DetectedWebDAV loop.
510Not ExtendedFurther extensions required.
511Network Authentication RequiredCaptive portal/auth needed.

500 Internal Server Error

Catch-all for unhandled exceptions. Log with correlation IDs; prefer specific 5xx when possible.

501 Not Implemented

Server does not support the method or feature. Different from 405 (method known but not allowed on resource).

502 Bad Gateway

A reverse proxy/CDN got an invalid response from upstream. Investigate upstream health, TLS, and timeouts.

503 Service Unavailable

Temporary overload or maintenance. Include Retry-After. Can be used for brownouts.

504 Gateway Timeout

Proxy/CDN timed out waiting for upstream. Review origin latency, keepalives, and connection pools.

507/508/510/511

Less common; mostly enterprise or network control contexts.

CDN notes: Use stale-if-error/serve-stale controls where available. Configure retries, shields, and multi-origin failover carefully to avoid request storms.