Gateway and availability failures.

Section: Common Web Error Scenarios

502 vs 503 vs 504

text
text
502 = bad upstream response
503 = service unavailable / overloaded / maintenance
504 = upstream timeout
Explanation

These are some of the most common proxy and load-balancer errors.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Common Web Error Scenarios
401 vs 403
Authentication versus authorization.
OpenIn sheettextsame section
404 vs 410
Missing resource versus intentionally removed resource.
OpenIn sheettextsame section
301 vs 302 vs 307 vs 308
Choose the right redirect semantics.
OpenIn sheettextsame section
Cache validation codes
Conditional request and cache-related statuses.
OpenIn sheettextsame section
Print only the status code
Useful for scripts and health checks.
Print redirect target
Show the redirect location without fully following it.