What a 502 Bad Gateway error means

Most websites sit behind another server: a proxy, a load balancer or a content delivery network. A 502 means that front server asked the one behind it for your page and got a broken answer, or none.

Common causes

What to check first

502, 503 or 504?

All three mean the visitor did nothing wrong. A 502 is a bad answer from the server behind, a 503 means the server cannot take requests right now, and a 504 means the server behind took too long.

Know when it happens

A 502 during a restart can last seconds and go unnoticed. One that lasts is an outage. KeenCrow checks every minute and emails you when three checks in a row fail, with the status code it saw.

Check your website now, free More guides