hasStatus function

Matcher hasStatus(
  1. int statusCode
)

Matches a response with the exact status code.

Example:

expect(res, hasStatus(201));
expect(res, hasStatus(404));

Implementation

Matcher hasStatus(int statusCode) => _StatusMatcher(statusCode);