see https://github.com/elastic/elasticsearch/issues/12292 This should return a 400 error instead