HTTP Error Code 500
The server hit an unexpected condition and could not complete the request.
The server hit an unexpected condition and could not complete the request.
| Code | 500 |
| Product | HTTP |
| Company / origin | IETF / IANA · International standard |
| Category | Protocols & Standards |
| Platform / versions | HTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions |
| Severity | error |
| Official source | RFC 9110: HTTP Semantics ↗ |
| Last verified | 2026-11-08 |
What does HTTP error 500 mean?
HTTP 500 is a generic server-side failure. It means the request was accepted, but an unhandled exception, dependency failure, or configuration problem prevented a valid response. The details should be in the server logs, not in the public response.
Common causes
- An unhandled exception in the application code.
- A dependency such as a database, cache, or external service failed.
- A configuration or deployment problem left the application in an inconsistent state.
How to fix it
- Step 1
Check the server error log and the request ID; do not expose stack traces to users.
- Step 2
Retry once for a transient dependency failure, then stop and investigate.
- Step 3
Roll back the most recent deployment or configuration change if the error started at the same time.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
400 | Bad Request | The server cannot process the request because the syntax or parameters are invalid. |
401 | Unauthorized | Authentication is missing, expired, or invalid. |
403 | Forbidden | The server understood the request but refuses to authorize it. |
404 | Not Found | The requested resource does not exist at this URL. |
405 | Method Not Allowed | The HTTP method is not allowed for this resource. |
Source & verification
This page was checked against RFC 9110: HTTP Semantics on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with IETF / IANA. Always confirm destructive or security-sensitive steps with the official documentation.