hasStatus function

Matcher hasStatus(
  1. int statusCode
)

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);