Scoop API

scoop:scoop.http.client:0.1.0

HttpStatusException

class HttpStatusException

source · line 88
public
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()))

requireSuccess rejected a response outside the 2xx status range; the response head and URL remain available.

property url

source · line 96
public
public val url: Url

get: public read-only

The URL that produced the status.