make elasticsearch error messages more clear

fixes #518