HttpStatusCode
data class HttpStatusCode(val value: Int, val description: String) : Comparable<HttpStatusCode> (source)
Represents an HTTP status code and description.
Parameters
value
is a numeric code.
description
is free form description of a status.
Functions
Link copied to clipboard
Link copied to clipboard
Returns a copy of this
code with a description changed to value.
Link copied to clipboard
Checks if a given status code is a success code according to HTTP standards.