StatusPagesConfig
class StatusPagesConfig
A StatusPages plugin configuration.
Constructors
Types
Link copied to clipboard
A context for status config method.
Functions
Link copied to clipboard
fun status(vararg status: HttpStatusCode, handler: suspend (ApplicationCall, HttpStatusCode) -> Unit)
fun status(vararg status: HttpStatusCode, handler: suspend StatusPagesConfig.StatusContext.(HttpStatusCode) -> Unit)
Link copied to clipboard
Register a handler for the unhandled calls.
Properties
Link copied to clipboard
val statuses: MutableMap<HttpStatusCode, suspend (call: ApplicationCall, content: OutgoingContent, code: HttpStatusCode) -> Unit>
Extensions
Link copied to clipboard
fun <T : Throwable> StatusPagesConfig.exception(klass: Class<T>, handler: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit)
Link copied to clipboard
Register a status page file(s) using filePattern for multiple status code list