---
title: Creating rejection handlers
description: Create a new rejection handler in PingAccess.
component: pingaccess
version: 9.0
page_id: pingaccess:pingaccess_user_interface_reference_guide:pa_creating_rejection_handlers
canonical_url: https://docs.pingidentity.com/pingaccess/9.0/pingaccess_user_interface_reference_guide/pa_creating_rejection_handlers.html
revdate: August 19, 2025
section_ids:
  steps: Steps
  choose-from: Choose from:
---

# Creating rejection handlers

Create a new rejection handler in PingAccess.

## Steps

1. Click **Access**, then go to **Rules > Rejection Handlers**.

2. Click **[icon: plus, set=fa]Add Rejection Handler**.

3. In the **Name** field, enter a name for the object.

4. Choose the **Type**:

   ### Choose from:

   * **Error Template**

     1. If you select **Error Template**, specify the **Response Status Code**, the **Template File**, and the **Content Type**.

   * **Redirect**

     1. If you select **Redirect**, specify the **Response Status Code** and **URL** you want to redirect to if policy evaluation fails.

        You can use either an absolute or a relative Uniform Resource Locator (URL) *(tooltip: \<div class="paragraph">
        \<p>Identifies a resource according to its internet location.\</p>
        \</div>)*:

        * If you use an absolute URL, it must include the `http/https` prefix.

        * If you use a relative URL, it must begin with a slash. The URL can be specified with or without defining the port.

        |   |                                                                                                                                                                                                                                             |
        | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
        |   | To opt out of automatic URL encoding, deselect the **Encode URL** checkbox. Learn more in the **Opt out of automatic URL encoding** release note in [PingAccess 8.1 (June 2024)](../release_notes/pa_release_notes.html#previous-releases). |
