In the event you’ve ever visited an internet site that served you an error web page, you know the way irritating it’s.

One of many worst issues you are able to do as a model will not be meet your viewers’s wants and expectations. In case your web site guests see an error web page once they’re searching for assist or info, they might get pissed off and lose belief in your model, completely damaging your repute.

The 504 Gateway Timeout Error is one kind of error that may damage the user experience on this means. That will help you keep away from shedding model sentiment and client belief, we’ve fleshed out precisely what this error means and what its most typical causes and options are.

Improve your website with effective technical SEO. Start by conducting this  audit. 

Here is how a 504 Gateway Timeout Error may seem in your consumer’s browser:

pasted image 0-19Image Source

504 Errors Wording

The screenshot above depicts how a 504 Gateway Timeout Error seems in a single server. Beneath are another widespread methods a 504 error may seem, relying on the server, working system, or browser you are utilizing.

  • In Google Chrome, a 504 error will seem as HTTP ERROR 504. This code will seem beneath a message that reads one thing like: “This web site can’t be reached. _____ took too lengthy to reply.”

504 Gateway Timeout Error wording  in Google Chrome

Image Source

  • In Home windows-based applications, a 504 error will seem as ERROR 504, HTTP_STATUS_GATEWAY_TIMEOUT, or “The request was timed out ready for a gateway message.” Here is the way it could seem when utilizing Excel:

504 Gateway Timeout Error wording in Microsoft Excel

Image Source

  • Throughout a Home windows Replace, a Gateway Timeout Error generates a 0x80244023 error code. The message will probably be: WU_E_PT_HTTP_STATUS_GATEWAY_TIMEOUT.

504 Gateway Timeout Error wording in Windows Update

Image Source

  • In different working techniques, net servers, or browsers, a 504 error can also end result within the following message — though it’s much less widespread: “The proxy server didn’t obtain a well timed response from the upstream server.” Here is a slight variation:

504 Gateway Timeout Error wording in Internet Explorer

Image Source

So now we all know how the 504 error is worded — however what does it imply precisely? Let’s decode it beneath.

What does 504 gateway timeout imply?

When visiting an internet site, your server sends a request to a different server the place that web site is hosted. This server — generally known as the “upstream server” — receives the request and responds with no matter assets are wanted to load the web site in your browser.

Nonetheless, a 504 Gateway Timeout error implies that your server did not obtain a fast sufficient response from the upstream server. As a result of its request timed out, your server is unable to load the net web page and, finally, fulfill its function as a gateway — therefore the title “Gateway Timeout” error.

You is likely to be questioning what precisely causes the delay within the upstream server’s response — and that is a great query. Let’s deal with it beneath.

504 Gateway Timeout Causes

504 Gateway Timeout Errors are among the many most irritating HTTP status codes you possibly can obtain. They point out what occurred to your web site, however they don’t let you know why it occurred, making it difficult so that you can pinpoint its trigger and finally appropriate the difficulty.

Beneath are just a few potentialities.

Server Connectivity Points

Most web sites reside on a number of servers or third-party hosting providers. In case your server is down for upkeep or every other purpose, your web site may serve guests a 504 Gateway Timeout Error web page.

DNS Adjustments

In the event you’ve lately modified servers or moved your web site to a distinct IP deal with, it’ll make modifications to your web site’s DNS server. This might trigger your web site to serve its guests a 504 Gateway Timeout Error web page. Your web site received’t be up and operating till these DNS modifications take full impact, which may take just a few hours.

Defective Firewall Configurations

Your firewall is your web site’s gatekeeper, defending your web site from malicious guests or distributed denial-of-service (DDoS) assaults. Typically, a defective firewall configuration will trigger your firewall to deem requests from a content material supply community as an assault in your server and reject them, leading to a 504 Gateway Timeout Error.

Errors in Your Web site’s Code

If there’s a mistake in your web site’s code, your server may not have the ability to appropriately reply requests from a content material supply community.

Community Connectivity Errors

Since a 504 error is the results of a timeout throughout the processing of a request between servers, the issue possible lies with them — not the consumer’s web connection or machine. Nonetheless, if just one consumer experiences seeing a 504 error in your web site, it may should do with their modem, router, or one other machine. or their web connection.

Since there are a number of explanation why a 504 error may happen, it can finally be as much as you to rule each out till you discover the true trigger. Happily, there are 5 widespread and efficient options for fixing most 504 Gateway Timeout Errors’ causes.

1. Search for server connectivity points.

In case your server is down for upkeep or every other purpose, then your web site will possible serve guests a 504 Gateway Timeout Error web page. The one solution to troubleshoot this subject is to attend to your server to complete upkeep or repair the issue inflicting the error.

2. Verify for any DNS modifications.

In the event you’ve lately modified internet hosting suppliers or moved your web site to a distinct IP deal with, then your web site’s DNS server will must be up to date. These DNS modifications take just a few hours to course of so within the meantime your web site may serve guests a 504 Gateway Timeout Error web page. The one resolution is to sit down tight whereas these DNS modifications take impact.

3. Sift via your logs.

If the issue will not be your server’s connection or DNS info, then take a look at your server logs. These logs present particulars about your server’s well being and standing. Sifting via them could uncover different points that might be inflicting a 504 error.

4. Repair defective firewall configurations.

A defective firewall configuration stands out as the purpose behind your 504 Gateway Timeout Error. To rule it out because the trigger, you possibly can quickly deactivate your firewall.

In case your machine runs on Home windows, then navigate to your management panel and click on Replace & Safety > Home windows Safety > Virus & Menace Safety > Handle Settings. On this settings web page, you possibly can deactivate your firewall.

In case your machine runs on Mac OS, then merely navigate to System Preferences > Safety & Privateness > Firewall to deactivate it.

Turning off firewall in Mac OS can help resolve 504 Gateway Timeout error

When you’ve deactivated your firewall, examine to see if the 504 error is resolved. Whether it is, you possibly can both reconfigure the settings of your current antivirus program or swap to a brand new one.

If the error will not be resolved, don’t neglect to reactivate your firewall earlier than transferring onto the subsequent step.

5. Comb via your web site’s code to seek out bugs.

Comb via your code to seek out any bugs or copy your code right into a growth machine. It’ll carry out an intensive debug course of that can simulate the scenario by which your 504 Gateway Timeout Error occurred and permit you to see the precise second the place issues went incorrect.

6. Contact your internet hosting supplier.

Contacting your internet hosting supplier must be a final resort. However for those who’ve tried the steps above and are nonetheless seeing the 504 Gateway Timeout error, they can remedy the difficulty or present worthwhile perception.

How 504 Gateway Timeout Errors Have an effect on website positioning

Fixing a 504 Gateway Timeout Error can take time — but it surely’s properly well worth the effort contemplating the way it can affect your web site’s technical SEO.

Like an HTTP 500 Internal Server Error, 503 error, or every other 5xx error, a 504 Gateway Timeout error prevents your web site from loading. This not solely hurts the consumer expertise — it additionally hurts your website positioning efficiency.

If a web crawler makes an attempt to crawl one in every of your pages and is served a 504 error, then it may well’t crawl the web page. If that web page has already been listed, then it is likely to be lowered within the search engine outcomes. Or it is likely to be deindexed if the error persists.

Resolving the 504 Gateway Timeout Error

There’s no foolproof solution to forestall 504 Gateway Timeout Errors in your web site, however there are steps you possibly can take to resolve them. By fixing this error as rapidly as attainable, you’ll be certain that guests proceed to have seamless experiences in your web site and mitigate any detrimental impacts in your website positioning.

Editor’s notice: This publish was initially revealed in January 2019 and has been up to date for comprehensiveness.

Improve your website with effective technical SEO. Start by conducting this  audit.