Where can I find an exhaustive list of search exceptions thrown by ES?

There are users sending bad queries. Some examples are queries with offending characters like /, : \ and so on; queries with more than 1024 clauses; queries with syntax errors.
We'd like to discriminate these cases from infrastructure problems like clusters or indices not healthy in order to avoid retrying the query on another cluster.
Is there a way to easily identify those non retriable errors, or at least a comprehensive list of exceptions to look at? Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.