successful

fun HttpResponse.successful(): Boolean

Returns a Boolean indicating whether the HttpResponse is successful.

Return

True if the HttpResponse has HttpStatusCode value in the range of 200-299 , false otherwise.