status method
Asserts the response has the given status code.
Implementation
ResponseExpect status(int expected) {
if (_response.status != expected) {
throw ChaseTestFailure(
'Expected status $expected but got ${_response.status}',
);
}
return this;
}