isFailure method

bool isFailure(
  1. int statusCode
)

Implementation

bool isFailure(int statusCode) {
  return statusCode < 200 || statusCode > 299;
}