ServerErrorController

Default built-in controller which handles 500 Internal Server Error events.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun context(): ApplicationContext
Link copied to clipboard
@Get(value = "/error/internal", produces = ["text/html"])
@Error(status = HttpStatus.INTERNAL_SERVER_ERROR, global = true)
open suspend override fun handle(request: HttpRequest<out Any>): RawResponse
Link copied to clipboard
suspend fun PageController.html(block: suspend HTML.() -> Unit): RawResponse

Responds to a client with an HTML response, using specified block to build an HTML page via Kotlin's HTML DSL.