We only retry by default on 502 and 503. https://github.com/elastic/elasticsearch-net/blob/master/src/Elasticsearch.Net/Responses/ElasticsearchResponse.cs#L75 Elasticsearch PY only retries on 503. 504 https://github.com/elastic/elasticsearch-py/blob/6e94bf76adbbbb2fe5b927a3933ed535cd738387/elasticsearch/transport.py#L70 perl only on 503. I think it makes sense to also add 504 to the list