> For the complete documentation index, see [llms.txt](https://sevenval.gitbook.io/flat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sevenval.gitbook.io/flat/develop/reference/actions/echo.md).

# echo Action

Sends its text content as response body and terminates the request.

```markup
<echo>test</echo>
```

The intended use is error handling or debugging.

## Syntax

The `mime` attribute defines the response `Content-Type`. Default: `text/plain`

The `status` attribute defines the HTTP response status code. This is a shortcut for a [`set-status` action](/flat/develop/reference/actions/set-status.md).

## Example

```markup
<echo mime="text/json;charset=utf-8" status="400">
{
  "error": {
    "message": "Something went wrong",
    "code": 4711
  }
}
</echo>
```

The action body contains static text. If you need dynamic processing, use a [`template` action](/flat/develop/reference/actions/template.md) (and [`<break/>`](/flat/develop/reference/flow.md#break)) instead.
