1. Click Access and then go to Rules > Rejection Handlers.
  2. Click + Add Rejection Handler.
  3. In the Name field, enter a name for the object.
  4. Choose the Type:
    • 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 URL. 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.