HTTP 5xx Server Error Codes List
Get a complete, ordered reference of HTTP 5xx status codes for server-side failure conditions.
HTTP 5xx server error codes(11 registered status codes)
Based on the IANA HTTP Status Code Registry for the 5xx range. Includes any registered special entries and excludes unassigned ranges.
How to use this list
Apply HTTP 5xx codes in 3 steps
Takes ~5 seconds- 1Choose output format
Select text for docs, JSON for constants, or HTML for form controls.
- 2Copy or download
Use one-click copy or download the output file.
- 3Use in your workflow
Paste into runbooks, tests, SDK docs, or monitoring rules.
Common use cases
- Developers documenting expected API response classes
- QA teams creating focused response-code test coverage
- Platform teams standardizing logs and alert labels
Examples
5xx example code.
500
500 Internal Server Error
Additional code in the same class.
503
503 Service Unavailable
HTML output for select menus.
500 Internal Server Error
<option value="500 Internal Server Error">500 Internal Server Error</option>
Reliable HTTP 5xx response reference
This list provides a focused reference of HTTP 5xx entries so teams can standardize behavior across implementation, testing, and operations.
HTTP 5xx codes all mean the server, not the client, is at fault, but the specific code points to a different failure mode: 500 for an unhandled server-side error, 502 when a gateway gets an invalid response from upstream, 503 when the server is deliberately unavailable (overload or maintenance), and 504 when an upstream request simply timed out. This list gives you the full IANA-registered 5xx range in copy-ready text, JSON, or HTML <option> format, so incident runbooks, alerting rules, and gateway error handling can distinguish these failure modes instead of logging everything as a generic 500.
Every 5xx code means the failure is on the server side, but gateway, overload, and timeout failures each point to a different fix.
- 502 for a bad response from upstream
- 503 for a server that's overloaded or down for maintenance
- 504 for an upstream that took too long
Grab the range as plain text, a JSON array, or ready-to-paste HTML <option> tags.
- Plain text list
- JSON array
- HTML <option> tags
No client-error or success codes mixed in — just the range that points back at your own infrastructure.
- Incident and on-call runbooks
- Alerting and dashboard rules
- Gateway and proxy error mapping
Choosing the right 5xx code
Precise 5xx codes make incidents faster to triage, because the code itself tells you where to look.
- Return 503 (not 500) for planned maintenance or overload so clients and monitors know the outage is temporary.
- Distinguish 502 (an invalid response from upstream) from 504 (upstream took too long) in gateway and load-balancer logs.
- Alert on 5xx rates separately from 4xx rates — a 5xx spike means your own systems need attention, not the caller.
Frequently asked questions
What's the difference between 502 and 504?>
Should a planned maintenance window return a 500?>
Can a 5xx error ever be the client's fault?>
Related Developer lists
Copy common application/* MIME types in text, JSON, or HTML format for API content negotiation, downloads, and file validation.
Copy common audio MIME types in text, JSON, or HTML format for uploads, playback support checks, and processing pipelines.
Copy a practical common MIME types list in text, JSON, or HTML format for uploads, APIs, validation, and content handling.
Copy all HTTP 2xx success codes in text, JSON, or HTML format for API docs, tests, and monitoring workflows, ready to paste.
Copy all HTTP 3xx redirect codes in text, JSON, or HTML format for API docs, tests, and monitoring workflows, ready to paste.
Copy all HTTP 4xx client error codes in text, JSON, or HTML format for API docs, tests, and monitoring workflows.
Copy a clean http request methods list (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE, CONNECT) in text, JSON, or HTML for API docs and tooling.
Copy the complete IANA-registered HTTP status codes list in text, JSON, or HTML format for APIs, docs, testing, and observability workflows.
Copy common image MIME types in text, JSON, or HTML format for upload validation, image processing, and media tooling.
Copy common video MIME types in text, JSON, or HTML format for upload policies, streaming workflows, and player support checks.