code: def setResponse(self, response):
          
          self.response = response
          self.result = self.response.body
  
          if isinstance(self.result, remoting.ErrorFault):
              self.result.raiseException()
docs: A response has been received by the gateway