title: How do I configure nginx to show location specific error messages?
body: <p>Suppose I have two sets of actions on my base_url:</p>
  
  <ul>
  <li>base_url/action_a</li>
  <li>base_url/everything_else</li>
  </ul>
  
  <p>When my any action raises a 500, I want to show a custom 500.html but for a 500 raised by action_a I want to bypass the custom 500.html but let the action's response suffice.</p>
  
  <p>How can I configure <code>action_a</code> to not use the error_page directive in the nginx configuration?</p>
  
  <p>Currently, I can serve my custom 500.html generically via</p>
  
  <pre><code>error_page 501 502 503 504 505 /50X.html; 
  </code></pre>