title: Can Nginx return a 503 error code on "deny all"?
body: <p>I want to put my site into a "maintenance mode", so that only my IP address can access it. This is easy to do with something like this:</p>
  
  <pre><code>location /
  {
     allow 1.1.1.1;
     deny all;
  }
  </code></pre>
  
  <p>...but that returns a 403 (Forbidden) message instead of a 503 (Service Unavailable) error code. Is there any way to return a 503 via "deny all" instead?</p>