What HTTP 500 means
RFC 9110 §15.6.1. The catch-all 5xx — the server hit an exception it didn't handle. Always indicates a bug or operational issue server-side. Should never be returned for client errors. Always log with full stack trace.
Typical causes
- Unhandled exception
- Database connection failed
- Null pointer / undefined access
- Type error in handler
- Configuration error