# Event Routes

## `event_route[tm:branch-failure]`

Named branch failure routes can be defined to run when when a failure response is received. This allows handling failures on individual branches, for example, retrying an alternative outbound flow.

The format of the event_route name is "tm:branch-failure:<name>" and is enabled with the t_on_branch_failure function. This event_route uses the BRANCH_FAILURE_ROUTE route type.

### `event_route[tm:branch-failure]` usage

    ...
    route {
        t_on_branch_failure("myroute");
        t_relay();
    }

    event_route[tm:branch-failure:myroute] {
        xlog("L_INFO", "Received $T_reply_code to $rm message\n");
    }
    ...