Log BadRequest responses from elasticsearch

This lets us see the body of the response, which contains details of
what went wrong.