isSuccess

open fun isSuccess(): Boolean
open fun isSuccess(statusCode: Int): Boolean

Return

true for response with 2xx status codes