---
title: Creating rejection handlers
description: Create a new rejection handler in PingAccess.
component: pingaccess
version: 8.1
page_id: pingaccess:pingaccess_user_interface_reference_guide:pa_creating_rejection_handlers
canonical_url: https://docs.pingidentity.com/pingaccess/9.1/pingaccess_user_interface_reference_guide/pa_creating_rejection_handlers.html
llms_txt: https://docs.pingidentity.com/pingaccess/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: June 14, 2024
superseded_by: https://docs.pingidentity.com/pingaccess/9.1/pingaccess_user_interface_reference_guide/pa_creating_rejection_handlers.html
section_ids:
  steps: Steps
  choose-from: Choose from:
---

# Creating rejection handlers

Create a new rejection handler in PingAccess.

## Steps

1. Click **Access** and 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**

   * **Redirect**

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

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

      You can use 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** check box. Learn more in [PingAccess 8.1 (June 2024)](../release_notes/pa_81_rn.html). |
