code: def response(self, msgid, error, result):
          
          if error:
              self.requests[msgid].errback(Exception(str(error)))
          else:
              self.requests[msgid].callback(result)
          del self.requests[msgid]
docs: Handle a results message given to the proxy by the protocol object.