---
title: "setExceptionHandler"
sidebar_label: "setExceptionHandler"
description: "Kotlin binding reference: setExceptionHandler."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[HttpServer](index.md)/[setExceptionHandler](setExceptionHandler.md)

# setExceptionHandler

[common]\
fun [setExceptionHandler](setExceptionHandler.md)(handler: [ExceptionHandler](../ExceptionHandler/index.md)?)

The page of a handler that raised (null restores the default 500).