504 Gateway Timeout
The guy behind me isn't answering.
What it properly means
The server, acting as a gateway, did not get a response from the upstream server in time.
- Class
- 5xx Server error: we fucked up
- Defined in
- RFC 9110, section 15.6.5
Get one yourself
This endpoint really answers with 504. Point your client at it and see what it does.
curl -i https://httpcodes.dev/api/504People mix this up with
-
Bad answer, or no answer?
Both come from a proxy or gateway blaming the server behind it. 502 means the upstream replied with rubbish. 504 means it never replied in time.