code: def ping(self, params=None):
          
          try:
              return self.transport.perform_request("HEAD", "/", params=params)
          except TransportError:
              return False
docs: Returns True if the cluster is up, False otherwise.
          `<http://www.elastic.co/guide/>`_