HttpStatusCodeRange

data class HttpStatusCodeRange(val min: Int = DEFAULT_MIN, val max: Int = DEFAULT_MAX)

The Http status code range. Example for a range: 400 to 499, 500 to 599, 400 to 599 The range is inclusive so the min and max is considered part of the range.

Example for a single status code 400, 500.

Constructors

Link copied to clipboard
constructor(statusCode: Int)
constructor(min: Int = DEFAULT_MIN, max: Int = DEFAULT_MAX)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun isInRange(statusCode: Int): Boolean

Properties

Link copied to clipboard
val max: Int

the max status code of the range

Link copied to clipboard
val min: Int

the min status code of the range