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

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

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[ServerResponse](../index.md)/[Companion](index.md)/[error](error.md)

# error

[common]\
fun [error](error.md)(status: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)): [ServerResponse](../index.md)

A status alone; its page comes from the server's error handler.