How to redirect blocked user to custom-error page?

Hi! I am using the classic universal login without the lock-widget. I want to redirect a blocked user to a custom error page. I have set a custom error page in the dashboard as domain.com/auth0-error, but it is redirecting to domain.com/.

I found a similar issue on the forum, but there is no answer that solves my problem. Here is the link to the thread: