responseIsSuccessful function

bool responseIsSuccessful (
  1. int statusCode
)

Implementation

bool responseIsSuccessful(int statusCode) =>
    statusCode >= 200 && statusCode < 300;