Maybe `$this->_error = true;` should be called when there is a Json Exception? (like if ES is not able to answer Json but still manage to return a 200).