Check 2 differents status with Karate

I have a question about the framework Karate. I would like to know if we can check 2 status with karate.

For example : Given url myUrl When method get Then status 200 or 204

Thanks for your help.


Solution 1:

Yes.

Then assert responseStatus == 200 || responseStatus == 204

EDIT: also see https://stackoverflow.com/a/65938884/143475