isServerError method
Asserts the response status is in the 5xx range.
Implementation
ResponseExpect isServerError() {
if (!_response.isServerError) {
throw ChaseTestFailure(
'Expected server error (5xx) but got ${_response.status}',
);
}
return this;
}