ktor-auth / io.ktor.auth / UnauthorizedResponse

UnauthorizedResponse

class UnauthorizedResponse : NoContent

Response content with 401 Unauthorized status code and WWW-Authenticate header of supplied challenges

Parameters

challenges - to be passed with WWW-Authenticate header

Constructors

<init>

UnauthorizedResponse(vararg challenges: HttpAuthHeader)

Response content with 401 Unauthorized 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?