Server errors (500–504): what’s the difference?
All 5xx codes mean the server couldn’t complete the request. The key difference is the cause and who can fix it.
- 500: generic server error with no specific cause.
- 501: the requested functionality isn’t supported.
- 502: bad gateway — an upstream server returned an invalid response.
- 503: service temporarily unavailable (maintenance or overload).
- 504: gateway timeout — the upstream server was too slow to respond.
