correctly catch error status codes from ElasticSearch