EN
5045xx Server errors

HTTP 504 Gateway Timeout

A gateway or proxy server did not get a response in time from the server behind it.

Quick answer

HTTP status code 504 (Gateway Timeout) means: A gateway or proxy server did not get a response in time from the server behind it. Yes, a server error: the website failed to handle the request. Usually only the site owner or host can fix it.

Is it an error?

5xx Server errors

Yes, a server error: the website failed to handle the request. Usually only the site owner or host can fix it.

The server failed to handle a valid request; the problem is on the website's side.

Common causes

  • Backend server or a slow task took too long to respond
  • Server overloaded, out of resources or under maintenance
  • DNS records pointing to the wrong server

If you are visiting the site

  1. Wait a few minutes before trying again
  2. Reload the page
  3. Check your connection, or try without a VPN or proxy

If you run the website

  1. Speed up slow requests, run long jobs in the background or raise proxy timeouts
  2. Make sure the backend (e.g. PHP-FPM or app server) is running and responding
  3. Check that DNS A/AAAA records point to the correct server IP

Frequently asked questions

What does HTTP 504 mean?

HTTP status code 504 (Gateway Timeout) means: A gateway or proxy server did not get a response in time from the server behind it.

Is HTTP 504 an error?

Yes, a server error: the website failed to handle the request. Usually only the site owner or host can fix it.

How do I fix a 504 error?

If you are visiting the site: Wait a few minutes before trying again; Reload the page; Check your connection, or try without a VPN or proxy. If you run the website: Speed up slow requests, run long jobs in the background or raise proxy timeouts; Make sure the backend (e.g. PHP-FPM or app server) is running and responding; Check that DNS A/AAAA records point to the correct server IP.

5xx Server errors