HttpException
open class HttpException(message: String, val status: HttpStatusCode, val response: Response? = null) : Exception
Thrown on HTTP response with a non-successful status code (4xx or 5xx).
Parameters
message
The error message.
status
The HTTP status code.
response
The full HTTP response.