class HttpStatusException
source · line 88public
public class HttpStatusException public constructor(
/**
* The rejected final response head.
*/
public val head: HttpResponseHead,
/**
* The URL that produced the status.
*/
public val url: Url) : Exception(Some("HTTP status " + head.status.toString()))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
requireSuccess rejected a response outside the 2xx status range; the response head and URL remain available.
property url
source · line 96public
public val url: Url
get: public read-only
The URL that produced the status.
constructor constructor
source · line 88public
constructor(public val head: HttpResponseHead, public val url: Url)
parameter url
source · line 96public
public val url: Url
parameter head
source · line 92public
public val head: HttpResponseHead
property head
source · line 92public
public val head: HttpResponseHead
get: public read-only
The rejected final response head.