code: def send(self, value, error=False):
          
          if error:
              resp = [1, self._request_id, value, None]
          else:
              resp = [1, self._request_id, None, value]
          debug('sending response to request %d: %s', self._request_id, resp)
          self._msgpack_stream.send(resp)
docs: Send the response.
  
          If `error` is True, it will be sent as an error.