curl --fail localhost:9200/_cluster/health code example Example: elasticsearch check status GET /_cluster/health?wait_for_status=yellow&timeout=50s