retrofit / retrofit2 / Response / isSuccessful

isSuccessful

fun isSuccessful(): Boolean

Returns true if #code() is in the range [200..300).