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

# Actions

> Learn about Traffic Policy Actions that define what happens when rules are matched, including traffic manipulation and routing Actions.

In Traffic Policy, Actions define what happens when a [Rule](/docs/gateway/traffic-policy/how-it-works#phase-rules) on a [Phase](/docs/gateway/traffic-policy/how-it-works#phases) conditions are met.
Actions allow you to manipulate, route, and manage traffic in various ways.

[View a list of available Actions →](/docs/gateway/traffic-policy/actions)

## Non-terminating actions

Some Actions can short-circuit a request and immediately return a response. These are called **terminating actions**. **Non-terminating actions** do not return a response, but instead go to the next action in the chain. All **Cloud Endpoint** Traffic Policies must end with a terminating action. This requirement does not apply to **Agent Endpoints**.

The list of terminating Traffic Policy Actions includes:

* [`close-connection`](/docs/gateway/traffic-policy/actions/close-connection)
* [`custom-response`](/docs/gateway/traffic-policy/actions/custom-response)
* [`deny`](/docs/gateway/traffic-policy/actions/deny)
* [`forward-internal`](/docs/gateway/traffic-policy/actions/forward-internal)
