expectStatus static method
Asserts that response has status.
Implementation
static void expectStatus(HttpResponseSpec response, int status) {
if (response.statusCode != status) {
throw StateError('Expected HTTP $status, got ${response.statusCode}');
}
}