isSuccess

fun HttpStatusCode.isSuccess(): Boolean

Checks if a given status code is a success code according to HTTP standards.

Codes from 200 to 299 are considered to be successful.