# Render a custom error page

**URL:** <https://community.auth0.com/t/render-a-custom-error-page/109921>\
**Category:** Get Help\
**Tags:** tenants, management-api\
**Created:** [June 26, 2023, 5:41am UTC](https://community.auth0.com/t/render-a-custom-error-page/109921 "2023-06-26T05:41:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blakshi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@blakshi](https://community.auth0.com/u/blakshi)\
**Post date:** [June 26, 2023, 5:41am UTC](https://community.auth0.com/t/render-a-custom-error-page/109921/1 "2023-06-26T05:41:52Z")

</div>

Hi, I am just trying to render a customer error page as per the documentation [here](https://auth0.com/docs/customize/universal-login-pages/custom-error-pages#render-a-custom-error-page) but it doesn’t seem to be working for me. I am always redirected to [http://localhost:3000/callback](http://localhost:3000/callback)

Below is the management API call that I used to update the custom error page html,

```auto
  curl --request PATCH \
  --url 'https://mycompany-au.auth0.com/api/v2/tenants/settings' \
  --header 'authorization: Bearer mytoken' \
  --header 'content-type: application/json' \
  --data '{"error_page": {"html": "This is the error page", "show_log_link": false, "url": ""}}'
  

```

API call returns 200 OK but the custom error page never displays.

To test this, I have added a custom built action in the Post Login flow that does **api.access.deny(“Test error.”);**

Any assistance on what I am doing wrong here would be greatly appreciated.

Thanks,  
Bimal

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [June 27, 2023, 4:45pm UTC](https://community.auth0.com/t/render-a-custom-error-page/109921/3 "2023-06-27T16:45:49Z")

</div>

Hi @blakshi

Welcome to the Auth0 Community.

If your callback url is valid then the current behaviour is expected as per this doc [https://auth0.com/docs/authenticate/login/auth0-universal-login/error-pages](https://auth0.com/docs/authenticate/login/auth0-universal-login/error-pages), the error will be received as a query param on your callback url, your application can then parse for these errors and respond appropriately.

The custom error page can potentially replace the default Auth0 error page which will be used if the callback url is not valid or:

- Required parameters are missing when calling the Auth0 Authentication API [Login endpoint](https://auth0.com/docs/api/authentication#login).
- User opens an expired password reset link (when using the Classic Universal Login Experience).
- User navigates to a bookmarked login page and a [Default Login Route](https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes) is not specified.

Above taken from our doc here [https://auth0.com/docs/customize/universal-login-pages/custom-error-pages](https://auth0.com/docs/customize/universal-login-pages/custom-error-pages)

Warm regards.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 9, 2024, 11:01pm UTC](https://community.auth0.com/t/render-a-custom-error-page/109921/4 "2024-12-09T23:01:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
