I'm struggling myself trying to change that default message once you insert invalid credentials as username:password on rails using
.authenticate_or_request_with_http_basic
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 HTTP Basic: Access denied.
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?
Thanks in advance