Scoop API

scoop:scoop.http.server:0.1.0

HttpRejection

class HttpRejection

source · line 54
public
public class HttpRejection public constructor(
    /** The response to execute in the current request pipeline. */
    public val result: HttpResult,
    /** The original input failure, when this rejection was produced by a decoder. */
    public val cause: Throwable? = None
) : Exception(Some("HTTP request rejected"))

An expected request rejection carrying the response selected by the application or extractor.

property result

source · line 56
public
public val result: HttpResult

get: public read-only

The response to execute in the current request pipeline.

property cause

source · line 58
public
public val cause: Throwable? = None

get: public read-only

The original input failure, when this rejection was produced by a decoder.