isClientError method

ResponseExpect isClientError()

Asserts the response status is in the 4xx range.

Implementation

ResponseExpect isClientError() {
  if (!_response.isClientError) {
    throw ChaseTestFailure(
      'Expected client error (4xx) but got ${_response.status}',
    );
  }
  return this;
}