Use traefik middleware globally in kubernetes

I want to setup custom error pages for my traefik.
I have setup IpWhitelist (https://docs.traefik.io/v2.0/middlewares/ipwhitelist/) middleware which works fine. but in case of failure it shows standard error page. I want to replace it with custom error page.

I've added another middleware Errors (https://docs.traefik.io/v2.0/middlewares/errorpages/)
which works in case of 404 I can see the custom error page. but in case of Ipwhitelist failure it still shows standard "Forbidden" page and not the custom error page.

I think either of one middleware is working or I'm doing something wrong.
I also want to configure Errors middleware globally so that i dont have to specify on each and every IngressRouts I configure on my environment.

can anyone help me in this? TIA.