Server error

504 504 Gateway Timeout

A proxy waited for the application and gave up. Something behind the front end is taking longer than the timeout allows.

Common causes

  • A slow database query or a missing index.
  • An external API call inside the request that is hanging.
  • A long-running import or report generated inside a web request.

How to fix it

  • Find the slow query — the slow query log will name it.
  • Move long jobs to a background worker and poll for the result.
  • Raise the timeout only as a stopgap; it hides the problem rather than fixing it.

See what a site actually returns

Run a live check and read the real status code, headers and timings.

Check a website