isSuccessful function

bool isSuccessful(
  1. int statusCode
)

Return Is Successful

Implementation

bool isSuccessful(int statusCode) {
  return statusCode >= 200 && statusCode < 300;
}