class HTTParty::Request

def response_unauthorized?

def response_unauthorized?
  !!last_response && last_response.code == '401'
end