status static method
Asserts problem carries the expected status.
Implementation
static void status(Problem problem, int expected) {
if (problem.status != expected) {
throw AuthAssertionError(
'expected status $expected but got ${problem.status}',
);
}
}