Skip to content

How to Override or Modify HTTP Status Code checks #1152

Answered by MykolaGolubyev
aplatypus asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,
looks like docs for it a bit hidden, will think where to put them so users discover them easier
https://testingisdocumenting.org/webtau/HTTP/CRUD#implicit-statuscode-check

http.post("/customers/${id}", ....) {
    statusCode.should == 200
}
http.post("/customers/" + id, ((header, body) -> {
    header.statusCode.should(equal(200));
}));

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aplatypus
Comment options

@MykolaGolubyev
Comment options

Answer selected by aplatypus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants