# How to redirect blocked user to custom page?

**URL:** <https://community.auth0.com/t/how-to-redirect-blocked-user-to-custom-page/90301>\
**Category:** Get Help\
**Tags:** actions, rules\
**Created:** [September 8, 2022, 11:39pm UTC](https://community.auth0.com/t/how-to-redirect-blocked-user-to-custom-page/90301 "2022-09-08T23:39:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [September 14, 2022, 6:13am UTC](https://community.auth0.com/t/how-to-redirect-blocked-user-to-custom-page/90301/8 "2022-09-14T06:13:22Z")

</div>

Thank you for the updates. I see that the error is being returned to your applications callback endpoint.

So to configure a custom page to handle this error, in your application, you need to create a check at your POST /callback route that looks for an error being returned. Then you can handle the error by redirecting to a static error page.

I’m not an expert on Express. This may be a good place to start:

> **[Express error handling](https://expressjs.com/en/guide/error-handling.html)**

> **[Express error handling](https://expressjs.com/en/guide/error-handling.html#writing-error-handlers)**

Hope this helps!

---

_[View the full topic](https://community.auth0.com/t/how-to-redirect-blocked-user-to-custom-page/90301)._
