Validates that a TestResponse has the specified HTTP status code.
This matcher only validates the status code. See hasResponse for more details. Usage:
var response = await client.request("/foo").get();
expect(response, hasStatus(404));
Source
_HTTPResponseMatcher hasStatus(int statusCode) => new _HTTPResponseMatcher(statusCode, null, null);