Zest.
5xx · Server error

HTTP 504 Gateway Timeout

A gateway or proxy didn't get a response from the upstream server in time.

Common causes and fixes

  • Look for slow queries or downstream calls; raise the proxy timeout only after fixing the slowness.

Example response

HTTP
HTTP/1.1 504 Gateway Timeout
Content-Type: application/json; charset=utf-8

{ "error": "Gateway Timeout" }

Look up the headers shown here in the HTTP headers reference.

Common questions

What does HTTP 504 mean?
Gateway Timeout. A gateway or proxy didn't get a response from the upstream server in time.
How do I fix a 504 error?
Look for slow queries or downstream calls; raise the proxy timeout only after fixing the slowness.
Is 504 an error?
Yes. 5xx codes are server errors: The server failed to fulfil a valid-looking request.

Other 5xx codes