I'd like to avoid doing this path check here. If we assume that the server is not working at all when we have a 503 or 502 error, we should do something similar to what we do for /noscript. A fully static page for when the server is down, avoiding the need to mix that logic with our main logic.