Package io.ktor.server.plugins.statuspages
Types
Link copied to clipboard
typealias HandlerFunction = suspend (<ERROR CLASS>, cause: Throwable) -> Unit
Content copied to clipboard
Specifies how the exception should be handled.
Link copied to clipboard
A StatusPages plugin configuration.
Functions
Link copied to clipboard
fun <T : Throwable> StatusPagesConfig.exception(klass: Class<T>, handler: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit)
Content copied to clipboard
Link copied to clipboard
fun StatusPagesConfig.statusFile(vararg code: HttpStatusCode, filePattern: String)
Content copied to clipboard
Register a status page file(s) using filePattern for multiple status code list