> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastgen.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Error

**Define error reponses for your APIs.**

<img src="https://mintlify.s3.us-west-1.amazonaws.com/organa/images/error-response-header.png" alt="error-response-header" />

## Overview

The Error Response allows you to specify a response that will be sent back to the client when an error occurs during the API endpoint execution. You are able to set a `Status Code`, `Response Header` as well as a `Response Body` to provide additional information to the client.

For the Error Response, choose a `4xx` status code for client errors and `500` for server errors.

Lastly, through the toggle you are able to allow further action blocks to be executed after a response has been sent.

## Example

Down below you can see an error response in it's most simple form:

<iframe style={{overflow: "hidden", borderRadius: "6px"}} width="100%" height="370px" src="https://app.fastgen.com/demo/error" />
