@http · HTTP status codes, explained HTTP/1.1 500 Internal Server Error ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5xx · Server error Something broke on the server. WHAT IT MEANS ──────────────────────────────────────────────────────────── The server hit an unexpected condition and couldn't complete the request. It's the generic server error: something broke, and the server isn't saying what. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → An unhandled exception or crash in application code. → A failed database query or missing configuration, such as an unset environment variable. → Bad server configuration, such as a broken .htaccess file. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Check the server logs; the real error is there, not in the response. → Clients can retry idempotent requests once, but repeated 500s need a fix on the server. → Don't leak stack traces to users; log them and return a request ID instead. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 500 Internal Server Error Content-Type: application/json  {"error": "internal", "request_id": "req_8f2c1a"} related 502 Bad Gateway   503 Service Unavailable   501 Not Implemented spec RFC 9110 §15.6.1 https://www.rfc-editor.org/rfc/rfc9110#section-15.6.1 web https://athttp.com/500 ← curl athttp.com/451 curl athttp.com/501 →