StatusPagesConfig
class StatusPagesConfig
A StatusPages plugin configuration.
Types
Link copied to clipboard
A context for status config method.
Properties
Link copied to clipboard
Provides access to exception handlers of the exception class.
Link copied to clipboard
val statuses: MutableMap<HttpStatusCode, suspend (call: ApplicationCall, content: OutgoingContent, code: HttpStatusCode) -> Unit>
Provides access to status handlers based on a status code.
Functions
Link copied to clipboard
fun <T : Throwable> StatusPagesConfig.exception(klass: Class<T>, handler: suspend PipelineContext<Unit, PipelineCall>.(T) -> Unit)
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 status page file(s) using filePattern for multiple status code list
Link copied to clipboard
Register a handler for the unhandled calls.