Error: Code 504 - The server gateway has timed out. Similar to the 408 Timeout error, but this one occurs at the gateway of the server.

How to fix the Web Error Code Error 504 Gateway Timeout

This article features error number Code 504, commonly known as Gateway Timeout described as The server gateway has timed out. Similar to the 408 Timeout error, but this one occurs at the gateway of the server.

About Status Codes

When you receive web error codes, you may either be having client or server issues. The problem could be related to browser or settings that are blocking your connection, or it can be any other issues related to the server you are trying to access.

To explain the problem further, here are some useful information about web error codes, their symptoms, causes and repair methods.

Definitions (Beta)

Here we list some definitions for the words contained in your error, in an attempt to help you understand your problem. This is a work in progress, so sometimes we might define the word incorrectly, so feel free to skip this section!

  • Gateway - This is a vague tag for all kinds of gateways including networks, general interfaces and products, where this term is used with its own meaning
  • Server - A server is a running instance of a software application capable of accepting requests from a client and giving responses accordingly.
  • Timeout - The timeout term refers to a predefined period of time allowed to elapse before an event is to occur

Symptoms of Code 504 - Gateway Timeout

Web error codes are also known as http status codes. There are five different classes of http status codes and they always start with the following digits, depending on what kind of error was encountered by the user. These are also the symptoms of the error that the user is experiencing. To explain further, here are the status codes.

5xx: Server Error
Users receive response with error code beginning with this number to message an error happening on the server side. In other words, these are server acknowledged errors coming from their end. These are the error messages displayed:
500 - Internal Server Error
501 - Not Implemented
502 - Bad Gateway
503 - Service Unavailable
504 - Gateway Timeout
505 - HTTP Version Not Supported

Fix Gateway Timeout (Error Error 504)
(For illustrative purposes only)

Causes of Gateway Timeout - Error 504

5XX codes are caused when the server fails to fulfill a request.

Repair Methods

There are particular troubleshooting steps for particular Web Error codes. However, there are also generalized repair methods users can perform when faced with these kinds of errors.

If a repair method works for you, please click the upvote button to the left of the answer, this will let other users know which repair method is currently working the best.

Please note: Neither nor it's writers claim responsibility for the results of the actions taken from employing any of the repair methods listed on this page - you complete these steps at your own risk.

up vote 4 down vote accepted
  • Sometimes, additional Extensions may give you Web Error Codes.
  • Uninstall Extensions you recently installed by going to your browser settings and then clicking More Tools.
  • You will see extensions than had been installed on your browser, choose the latest addition which you suspected caused the problem you are having.
  • This troubleshooting is normally handled by the site admin. If that is you, then you need to have an understanding of Web server configurations.
  • You may check which web server is running your site by using URL or domain checkers. You just need to enter the site address and analyze the results that you will get.
  • You may also check for broken links by right clicking the webpage and clicking on Inspect. This should give you the code to the site on the right side. You may check each anchor text and see if the links connected to them are still live.
When accessing a site, data gets stored in the browser cache. Sometimes, you have tried fixing a web error but the same message appears on your browser. In such cases, you need to clear your browser cache to get rid of the annoying message. Here are ways to do that in different kinds of browsers:
  • On Google Chrome
    • Open Chrome and click the three dots on the upper right portion of your browser
    • Click More Tools and then Click Clear browsing data.
    • You may choose to delete everything or just a certain browsing period.
    • Check the boxes beside Cookies and other site data and Cached images and files.
    • Finally, click Clear data.
  • On Edge
    • Click the ... it is the rightmost button just beneath the close button.
    • Scroll down and Click Settings.
    • Look for Clear browsing data, and click Choose what to clear button.
    • It will give you option to choose which type of data you want to clear, just put a check mark on the items you want to include, then click Clear.
  • On Mozilla
    • Go to History menu and select Clear Recent History.
    • You may click the Alt button if the menu bar is hidden.
    • You will see a dropdown menu where you can select the period or range you want to delete, click your selection.
    • You can click on Details to choose what to clear, whether it be the entire cache or other items.
    • Once selected, click Clear now and then reboot the browser to let changes take effect.
  • If you want to check log files, you may do so by first ensuring that you are logged into the web server computer as an Administrator.
  • Click Start, then Settings, then click Control Panel.
  • Open Administrator Tools and then double-click Internet Services Manager.
  • Select the website from the list of different served sites.
  • Right click the website and then point your mouse to Properties.
  • Select Website tab and then click Properties. On it, you will see General Properties tab. On the bottom of the window, you may see the location of the log files generated.
  • Open log files using WordPad, any text file viewer or Microsoft Word.
  • Here, you should be able to analyze where you got the errors while accessing a server.
  • There are also times when you manually enter the URL of a site you wish to explore. If you are getting errors after doing this, check the URL you just entered on the address bar if you are indeed accessing the correct address. If not, correct the items you typed incorrectly.
For Windows 7
  • Search for Windows Updates on the search bar.
  • Click enter when it comes up on the search results.
  • Check recent updates and click Uninstall updates on recent dates when the error began happening.
For Windows 8 and Windows 10
  • Press the window key and the letter X simultaneously to open Settings
  • When you get to Windows settings, click Update & Security.
  • Click view installed update history, then Uninstall updates.
  • You may also check for any unwanted characters on the codes and script by Debug Application Codes and Scripts. If you don't have any idea how to do it, you may check this resource to do that.
  • You may also try to Refresh website. Sometimes, the error you are getting is an old error which has not gone away and a simple refresh by clicking F5 may do the job.
Other languages:

Wie beheben Fehler 504 (Gateway-Zeitüberschreitung) - Das Server-Gateway ist abgelaufen. Ähnlich dem 408 Timeout-Fehler, aber dieser tritt am Gateway des Servers auf.
Come fissare Errore 504 (Gateway Timeout) - Il gateway del server è scaduto. Simile all'errore di timeout 408, ma questo si verifica al gateway del server.
Hoe maak je Fout 504 (Gateway Time-out) - Er is een time-out opgetreden voor de servergateway. Vergelijkbaar met de 408 Timeout-fout, maar deze treedt op bij de gateway van de server.
Comment réparer Erreur 504 (Délai d'expiration de la passerelle) - La passerelle du serveur a expiré. Similaire à l'erreur 408 Timeout, mais celle-ci se produit au niveau de la passerelle du serveur.
어떻게 고치는 지 오류 504 (게이트웨이 시간 초과) - 서버 게이트웨이 시간이 초과되었습니다. 408 Timeout 오류와 유사하지만 이것은 서버의 게이트웨이에서 발생합니다.
Como corrigir o Erro 504 (Gateway Timeout) - O gateway do servidor expirou. Semelhante ao erro 408 Timeout, mas este ocorre no gateway do servidor.
Hur man åtgärdar Fel 504 (Gateway Timeout) - Servergatewayen har tagits ut. Liknar 408 Timeout -felet, men det här inträffar vid serverns gateway.
Как исправить Ошибка 504 (Тайм-аут шлюза) - Время ожидания шлюза сервера истекло. Аналогично ошибке 408 Timeout, но она возникает на шлюзе сервера.
Jak naprawić Błąd 504 (Limit czasu bramy) - Upłynął limit czasu bramy serwera. Podobny do błędu limitu czasu 408, ale ten występuje na bramie serwera.
Cómo arreglar Error 504 (Tiempo de espera de puerta de enlace) - Se agotó el tiempo de espera de la puerta de enlace del servidor. Similar al error 408 Timeout, pero este ocurre en la puerta de enlace del servidor.

The Author About The Author: Phil Hart has been a Microsoft Community Contributor since 2010. With a current point score over 100,000, they've contributed more than 3000 answers in the Microsoft Support forums and have created almost 200 new help articles in the Technet Wiki.

Follow Us: Facebook Youtube Twitter
Last Updated:
26/11/23 07:47 : A Windows 10 user voted that repair method 5 worked for them.

Recommended Repair Tool:

This repair tool can fix common computer problems such as blue screens, crashes and freezes, missing DLL files, as well as repair malware/virus damage and more by replacing damaged and missing system files.

Click Here to Download and install the Windows repair tool.

Click on Start Scan and let it analyze your device.

Click on Repair All to fix all of the issues it detected.



1 Ghz CPU, 512 MB RAM, 40 GB HDD
This download offers unlimited scans of your Windows PC for free. Full system repairs start at $19.95.

Article ID: ACX01613EN

Applies To: Windows 10, Windows 8.1, Windows 7, Windows Vista, Windows XP, Windows 2000

Help someone else with this error and Share This Page:
Email Facebook Google LinkedIn Print Twitter

Speed Up Tip #19

Deleting Internet Browsing History:

One way to speed up your pc is by deleting your internet browsing history, cookies, and temporary internet files. By doing this, it will not only improve the performance of your computer but it will also let you reclaim valuable disk space and let you enjoy a more secured privacy.

Click Here for another way to speed up your Windows PC
Home     Blog     About     Privacy Policy     Contact Us

Errors in Alphabetical Order:  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Microsoft & Windows® logos are registered trademarks of Microsoft. Disclaimer: is not affiliated with Microsoft, nor does it claim such affiliation. This page may contain definitions from under the CC-BY-SA license. The information on this page is provided for informational purposes only. © Copyright 2018