Check for response codes in the 200s

Elasticsearch might respond with codes that are different than 200.