CAll Us: +1 888-999-8231 Submit Ticket

What is a 502 error?

Is your website throwing 502 errors? You’re not alone.

Plenty of site owners encounter this error page from time to time. It’s typically a problem related to an overwhelmed server that’s getting too many simultaneous requests. Fortunately, there are some things you can do about it.

Error 502s can present in a lot of different ways, and you can, in fact, code how these pages will be displayed. Here are just a few examples of what a 502 error page might say:

  • 502 Bad Gateway
  • Error 502: Bad Gateway
  • HTTP 502
  • Temporary Error (502)
  • 502 Service Temporarily Overloaded
  • Error 502

You get the idea.

What Causes An Error 502 Bad Gateway?

There are several HTTP status codes that a browser can display as a way to tell you that something has gone wrong, and what the error correlates to.

In the case of an error 502 bad gateway, this error code typically indicates that the server was not able to fulfill the request and load the page for the user.

There are a few different things that can cause an error 502 page to show up for a user, but most often, they’re typically related to two things: server capacity, and concurrent users, i.e. how much traffic the server your site is hosted on can handle, and how many users are making requests on your website.

The Cost of a 502 Error for An Ecommerce Site

The typical internet user navigates away from a page if it takes longer than three seconds to load. When your site gives them a 502 error message, how many users do you think will stick around and refresh the page? And once they leave, how many users will come back an hour or a day later?

Slow site speed coupled with 502 errors can make a dent in your conversion rate, ultimately costing you revenue and site profitability.

How to Fix a 502 Error

On the site owner side, a 502 error usually means there aren’t enough resources available to serve your webpage to all of your users. What’s likely the issue is that your host’s server is getting more traffic than it can handle. To fix this, you either need to upgrade your plan, or switch to a host with auto scaling (like us), so that when your site does get a traffic spike, users aren’t getting 502 errors.

When you switch over to Hostdedi, you’ll get a free site migration, a two-week free trial, and up to 24 hours of free auto scaling included with your plan – with no need to upgrade until you’re actually ready.

This means that the next time you do get a traffic spike, our servers will automatically compensate and deploy additional PHP workers, not only managing the extra traffic and preventing 502 errors, but keeping your website fast and high-performance.

If you’re stuck in a contract with your current host, Hostdedi will buy you out of it – click here to learn more about our Cover Your Costs program.

Source link

About the Author