ktor-client-core / io.ktor.client.features / ResponseException

ResponseException

open class ResponseException : IllegalStateException

Base for default response exceptions.

Parameters

response - : origin response

Constructors

<init>

ResponseException(response: HttpResponse)ResponseException(response: HttpResponse, cachedResponseText: String)

Base for default response exceptions.

Properties

response

val response: HttpResponse

Inheritors

ClientRequestException

class ClientRequestException : ResponseException

Bad client request exception.

RedirectResponseException

class RedirectResponseException : ResponseException

Unhandled redirect exception.

ServerResponseException

class ServerResponseException : ResponseException

Server error exception.