code: def getErrorResponse(self, errorCode, errorDescr):
  		
  		self.errorCode = errorCode
  		self.errorDescr = errorDescr
  		self.response = "yes"
  		return self
docs: This methods sets error attributes of an external method object.