isHttpStatusOK function

bool isHttpStatusOK(
  1. int? status
)

Tests whether the status code is a successfully response.

Implementation

bool isHttpStatusOK(int? status) => status != null && status >= 200 && status < 300;