hasStatus function
Matches a response with the exact status code.
Example:
expect(res, hasStatus(201));
expect(res, hasStatus(404));
Implementation
Matcher hasStatus(int statusCode) => _StatusMatcher(statusCode);
Matches a response with the exact status code.
Example:
expect(res, hasStatus(201));
expect(res, hasStatus(404));
Matcher hasStatus(int statusCode) => _StatusMatcher(statusCode);