diff --git a/src/test/java/org/elasticsearch/test/rest/section/DoSection.java b/src/test/java/org/elasticsearch/test/rest/section/DoSection.java index 3ea1ca09852..55902ffdc56 100644 --- a/src/test/java/org/elasticsearch/test/rest/section/DoSection.java +++ b/src/test/java/org/elasticsearch/test/rest/section/DoSection.java @@ -131,6 +131,6 @@ public class DoSection implements ExecutableSection { catches.put("missing", tuple("404", equalTo(404))); catches.put("conflict", tuple("409", equalTo(409))); catches.put("forbidden", tuple("403", equalTo(403))); - catches.put("request", tuple("4xx|5xx", greaterThanOrEqualTo(400))); + catches.put("request", tuple("4xx|5xx", allOf(greaterThanOrEqualTo(400), not(equalTo(404)), not(equalTo(409)), not(equalTo(403))))); } }