How can I make nginx always return a HTTP 503?
This doesn't work?
location / {
return 503;
}
There might be some tricks you have to use to get assets to show up on your custom error page (i.e., say your 503.html has an image in it. You have to do some logic to make the image show up with a 200 code, otherwise it'll be missing with a 503).