HttpError

data class HttpError(statusCode: Int, message: String?) : KrosstalkResult.Failure, KrosstalkResult.SuccessOrHttpError<Nothing>

The HTTP error KrosstalkResult, containing the HTTP status code and an optional message.

Constructors

Link copied to clipboard
fun HttpError(statusCode: Int, message: String? = null)

Functions

Link copied to clipboard
open override fun getFailureException(): KrosstalkHttpError
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val message: String? = null
Link copied to clipboard
val statusCode: Int
Link copied to clipboard
val statusCodeName: String?

Sources

Link copied to clipboard