HTTP Code: 500 (Internal Server Error)
HTTP Status Code Reference
Status Category
5xx — Server Error
Meaning & Definition
The server encountered an unexpected condition that prevented it from fulfilling the request.
Common Causes
- Uncaught application code exceptions
- Database connection loss crashes
- Syntax errors in runtime scripts (e.g. PHP/Node syntax crash)
How to resolve HTTP code errors
1. Inspect Logs: Check server logs (e.g. error.log) to locate runtime exceptions or database disconnects.
2. Test Endpoint: Use our Uptime Checker or redirects prober to verify response headers and payload size.
3. Configure Rules: Implement custom redirect rules or error fallback paths below in Nginx/Apache config.
Nginx Configuration Setup
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
internal;
}Apache Configuration Setup
ErrorDocument 500 /500.html
HTTP Diagnostic Tools
Authoritative Standards
IETF RFC 9110 — HTTP Semantics (June 2022, current standard)MDN Web Docs — HTTP Response Status Codes ReferenceIANA HTTP Status Code Registry
HTTP status codes standardized in RFC 9110. IANA maintains the official registry of all assigned codes.