title: Rails: Return a 401?
body: <p>I'd like to return a HTTP 401 error as part of my <code>permission_denied</code> method for <a href="http://github.com/stffn/declarative_authorization" rel="noreferrer">declarative_authorization</a>.</p>
  
  <pre><code># triggered when a user accesses a page that they don't have access to
  def permission_denied
    # render my default 401 error page?
  end
  </code></pre>
  
  <p>How would I do this? (Pardon the question if it's stupid... I know how to render the 401.html page in my public directory, but I don't think it returns the 401 HTTP header, which is what I'm after.)</p>