checkResponse method
Implementation
void checkResponse(HttpClientResponse res) {
if (res.statusCode - 200 >= 200) {
throw HttpException(res.reasonPhrase);
}
}
void checkResponse(HttpClientResponse res) {
if (res.statusCode - 200 >= 200) {
throw HttpException(res.reasonPhrase);
}
}