Exception status codeΒΆ
Available since: 2.1.0
Event that is dispatched when a routing exception 4xx or 5xx is found.
Provided tokens
| Token | Description |
|---|---|
[event] |
The event. |
[event:machine_name] |
The machine name of the ECA event. |
[session_user] |
The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
Fires when an HTTP exception with a 4xx or 5xx status code is encountered during routing. The [event:code] token provides the HTTP status code.
Useful for redirecting users on specific error codes (e.g., redirect to login on 403, custom page on 404), or sending notifications on server errors.