hasStatus function
Validates that TestResponse has a status code of statusCode
.
var response = await client.request("/foo").get();
expect(response, hasStatus(404));
Implementation
Matcher hasStatus(int statusCode) =>
HTTPResponseMatcher(statusCode, null, null);