title: Automatically refresh page on 502 Bad Gateway error
body: <p>When I’m doing maintenance on my site and restart the server, sometimes NGINX returns a 502 Bad Gateway error. The same thing sometimes happens under heavy load. This is confusing to my visitors who don’t realize the issue is probably temporary. Is there any way I can have visitors automatically refresh the page when the site is back?</p>