Hey @jerryforcode
The UnauthorizedError will redirect back to your callback URL with error
and error_description
query parameters so you can harness that information on your client.
You can also review this post about custom error pages https://community.auth0.com/t/render-a-custom-error-page-from-rule/61010
Regards