elasticsearch/elasticsearch — pull request #7619 by rjernst (2014-09-05 20:29:01+00:00)
Title: RestAPI: Change validation exceptions to respond with 400 status instead of 500

Validation errors are clearly in the realm of client errors (a program with the request). Thus they should return a 4xx response code.