Tests whether the status code is a successfully response.
bool isHttpStatusOK(int? status) => status != null && status >= 200 && status < 300;