> 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/reference/actions/set-status.md).

# set-status Action

Set the response's HTTP status code.

## Syntax

```markup
<set-status code="201"/>
```

## Usage

The `code` attribute is mandatory.

If the code is empty or not a number, status `500` will be used.

HTTP status codes defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-6.1) are sent with their proposed "reason phrase" (e.g. `OK` or `Not Found`).

The flow is not terminated.
