> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/es/acciones/workflow-concepts/workflow-steps/flow/error-step.md).

# Error

Genera mensajes de error personalizados que terminen el flujo de trabajo

## ¿Qué es el paso de error?

El paso de error te permite finalizar el flujo de trabajo y mostrar a los usuarios un mensaje de error personalizado y un código de error.

El error se compone de dos partes:

1. **Código de error:** Un identificador personalizado para el error, que puede utilizarse para el seguimiento y la depuración en la API del flujo de trabajo
2. **Mensaje de error:** Un mensaje personalizado que se muestra en la interfaz de AirOps y describe el error con instrucciones sobre cómo resolverlo.

### Caso de uso de ejemplo

Consideremos un escenario en el que queremos asegurarnos de que la entrada del usuario no contenga contenido sensible. Podemos configurar el paso de error para generar el siguiente error:

1. **Código de error:** `SENSITIVE_CONTENT_ERROR`
2. **Mensaje de error:** `Tu entrada contiene información confidencial. Por favor, elimina cualquier dato confidencial antes de continuar.`

#### Configuración del paso de error:

<div data-full-width="false"><figure><img src="https://3036434873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-bdb8cacb9f40a08ec0b7cf4601ae439d6bd8be63%2FScreenshot%202024-04-26%20at%2013.56.13.png?alt=media" alt="" width="563"><figcaption><p>Configuración del error</p></figcaption></figure></div>

**Paso de error mostrado al usuario:**

<figure><img src="https://3036434873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-39309ca4a0c2116f34bacd477f71323af0e25b6f%2FScreenshot%202024-04-26%20at%2013.57.41.png?alt=media" alt="" width="473"><figcaption><p>Mensaje de error</p></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/es/acciones/workflow-concepts/workflow-steps/flow/error-step.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
