'Respond to /server/state.'

def HandleState(self):

    if (not self.MASTER):
        self._EmptyResponse(constants.RESPONSE_NOT_MASTER_SERVER)
        return
    if (not self.data_server):
        logging.error('Server    %s    attempting    to    update    its    state    but    is    not    registered    yet', self.client_address)
        self._EmptyResponse(constants.RESPONSE_SERVER_NOT_REGISTERED)
        return
    state = rdf_data_server.DataServerState.FromSerializedString(self.post_data)
    self.data_server.UpdateState(state)
    logging.info('Received    new    state    from    server    %s', self.client_address)
    body = self.MAPPING.SerializeToString()
    self._Response(constants.RESPONSE_OK, body)
