title: Rails - authenticate_or_request_with_http_basic custom "access denied" message
body: <p>I'm struggling myself trying to change that default message once you insert invalid credentials as username:password on rails using <code><code>authenticate_or_request_with_http_basic</code></code>.</p>
  
  <p>For example if I make a curl request on a method that need this authentication, once I insert the wrong username and password it returns <code>HTTP Basic: Access denied.</code></p>
  
  <p>So, in this case I would like to be able to customize this message with a specific XML formatted string, (just like twitter API does). Is that possible?</p>
  
  <p>Thanks in advance</p>