class Devise::Strategies::HttpAuthenticatable

def authenticate!

def authenticate!
  username, password = username_and_password
  if resource = mapping.to.authenticate_with_http(username, password)
    success!(resource)
  else
    custom!([401, custom_headers, [response_body]])
  end
end