The Javascript client allows specifying certain HTTP status codes which should not be considered as errors, as per https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/ignore_examples.html
How can I do the same using the Java high level reset client?