Hello, I’m currently using the Java flavor of Gatling 3.11.5.
For some reasons (see How can I customize the error message in the HTML report? if curious) I need to ignore 500 response status for some HTTP requests.
I tried an HTTP check:
.exec(http("My request").get("/some-endpoint")
.check(status().in(200, 500)));
It does not work, Gatling still considers that the request failed and displays “status.find.is(200), but actually found 500” in the HTML report.
I also tried without success:
status().gt(0)
status().not(0)
status.saveAs("status")
Am I missing something ? How can I ignore selected HTTP statuses such as 500, 400, etc ?