Add error and status parsing from ES exception

Since ElasticSearch throws JSON encoded exceptions, I think it's a good idea to expose the real error and status instead of the raw message. We could also consider to have a ElasticsearchException class that all exceptions could override.