> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/tutorials-1/flow-customization-and-operations/how-to-customize-your-error-notification-flow.md).

# How to Customize Your Error Notification Flow?

When a flow fails, Fastn can automatically forward errors to a **notification flow**. By default, this is `fastnErrorNotification`. You can customize it to format error messages, enrich them with extra context, or forward alerts to external systems.

* In your flow, go to the **right-hand sidebar → Settings → Configuration**.

<figure><img src="/files/FCoi6t4DJBrydfE2T5bY" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/vAFhGKqpkheOGrF6SUrs" alt=""><figcaption></figcaption></figure>

* Under **Error Notification**, toggle **Enable Error Notification**.

<figure><img src="/files/vLTPGTDF4shAKYE1EiIS" alt=""><figcaption></figcaption></figure>

* Open the **fastnErrorNotification** flow.

<figure><img src="/files/NlnsuaTzaHuilci4GeqO" alt=""><figcaption></figcaption></figure>

* This flow starts with an **On API Request** trigger.
* Inside this flow, you can:
  * Map values from the incoming error.
  * Alter the error message.
  * Optionally, add any other steps as needed.

<figure><img src="/files/7Hn8HUVCqH6NYKFlcUbg" alt=""><figcaption></figcaption></figure>

* Save your changes.

**With this setup, you have control over how error messages are handled and displayed for your flow.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fastn.ai/tutorials-1/flow-customization-and-operations/how-to-customize-your-error-notification-flow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
