added a new ESError type to get back http status code to support implementation of index exists HEAD call. Fixed handling of multiple indices in flush