Definition
A gateway or proxy did not receive a timely response from an upstream server.
In practice
A 504 means a gateway waited too long for its upstream; compare upstream response times and request logs.
What to check next
A status code is one signal in a website or API check. Compare it with the response content, check location and incident history before deciding what changed.