HttpStatusCode

data class HttpStatusCode(val value: Int, val description: String)

Container for an HTTP status code

Constructors

Link copied to clipboard
constructor(value: Int, description: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
Link copied to clipboard

Check if the given status code is an informational code (HTTP codes 100 to 199 are considered informational)

Link copied to clipboard

Check if the given status code is a success code (HTTP codes 200 to 299 are considered successful)