---
title: "Script triggers defined in the <span class=\"fr-alt\" title=\"You can edit the router configuration over REST at the config/router endpoint, or directly in the conf/router.json file.\">router configuration</span>"
description: onFailure
component: pingidm
version: 8.1
page_id: pingidm:scripting-guide:script-triggers-routerConfig
canonical_url: https://docs.pingidentity.com/pingidm/8.1/scripting-guide/script-triggers-routerConfig.html
keywords: ["Scripting", "Triggers", "Router", "Configuration"]
---

# Script triggers defined in the router configuration *(tooltip: You can edit the router configuration over REST at the config/router endpoint, or directly in the conf/router.json file.)*

| Trigger      | Variable  |
| ------------ | --------- |
| `onFailure`  | exception |
| `onRequest`  | request   |
| `onResponse` | response  |
