
The three errors look almost the same in the browser but mean different things. The number tells you whose turn it was to fail, and that saves a lot of guessing.
| Error | What the server is saying | Most common cause |
|---|---|---|
| 502 Bad Gateway | I got an answer but I cannot make sense of it | A PHP process died mid response |
| 503 Service Unavailable | I am not taking requests right now | A load spike, a resource limit or maintenance mode |
| 504 Gateway Timeout | I waited for an answer and did not get one in time | A heavy query, an external API or a scheduled task |
All three are often temporary. If the site recovers on its own within a minute, it was a momentary spike. An error that keeps coming back is a different matter and needs to be traced, because your customers meet it too.
Log in to your hosting panel. If the panel works but the site does not, the server is up and the fault is in the site. If nothing opens, this is a wider outage. The same triage is covered in more detail in our guide on a website that will not load.
503 and 502 often come from a site trying to use more memory or more concurrent processes than the plan allows. The error log shows which request died and when. If the same plugin keeps appearing, you have found the cause.
504 almost always means something takes too long. Typical causes are a heavy database query, an import or export, an external API that does not answer, and a scheduled task that runs on every page load. If the site is sluggish in general, start from our guide on why a WordPress site is slow.
A bot or a crawler can read the site fast enough to congest the server. Your visitor statistics show whether the traffic is human or machine. In that case the right fix is to limit the request rate, not to buy a bigger plan.
Do not hit reload over and over. Every load adds pressure, and 503 gets worse from exactly that. Do not remove plugins by guessing either, before the log has been read, because removing the wrong one takes features away and fixes nothing.
We read the error log, find the part that crashes or stalls and fix it. We also tell you what caused it, so the same thing does not repeat next month.