HttpStatusException

class HttpStatusException(val status: HttpStatusCode, val body: Map<String, String>) : CancellationException

Constructors

Link copied to clipboard
constructor(status: HttpStatusCode, body: Map<String, String>)

Properties

Link copied to clipboard
Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The HttpException behind this. OkHttp hands one thrown by an interceptor of an async call on wrapped in an IOException.

Link copied to clipboard
open val message: String?
Link copied to clipboard
val status: HttpStatusCode