Returned 202 while expected 200.
Mastroianni2000
Greetings.
In post processors I specified: pm.test("Status code is 202", function () {
pm.response.to.have.status(202);
});
But when running the collection in "Testing", the error is Response HTTP code error: Returned 202 while expected 200.
I'm not expecting code: 200, the error message is not fair.
Maybe I'm wrong? Thank you.
w
wpastuszek
Make sure you've synced test steps with API. If you change something under API tabs that won't be reflected in Testing until you select steps and sync it. I've caught myself on that few times. Someone please correct me if i'm wrong.