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

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

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

# ErrorHandler

[common]\
fun interface [ErrorHandler](index.md)

The page of an error status (a 404, an explicit error): the request and the status in, the response out.

## Functions

| Name | Summary |
|---|---|
| [run](run.md) | [common]<br>abstract fun [run](run.md)(request: [ServerRequest](../ServerRequest/index.md), status: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)): [ServerResponse](../ServerResponse/index.md) |