returning elasticsearch errors

so the caller would know what went wrong