ktor-auth / io.ktor.auth / ForbiddenResponse

ForbiddenResponse

class ForbiddenResponse : NoContent

Response content with 403 Forbidden status code and WWW-Authenticate header of supplied challenges

Parameters

challenges - to be passed with WWW-Authenticate header

Constructors

<init>

ForbiddenResponse(challenge: HttpAuthHeader?)ForbiddenResponse(vararg challenges: HttpAuthHeader)

Response content with 403 Forbidden status code and WWW-Authenticate header of supplied challenges

Properties

challenges

vararg val challenges: Array<out HttpAuthHeader>

to be passed with WWW-Authenticate header

headers

val headers: Headers

status

val status: HttpStatusCode?