def verify_response(response)
      if response.response.status == 401
        return PasswordRequired.new if !@device.password?
        return WrongPassword.new    if @device.password?
      end

      response
    end
def verify_response(response)
      if response.response.status == 401
        return PasswordRequired.new if !@device.password?
        return WrongPassword.new    if @device.password?
      end

      response
    end
Private: Verifies response

 response - The Response object

 Returns a response object or exception