How to define multiple error redirect handler

I am now implementing oathkeeper for different self service web (say one for UI for public user and one UI for service provider).

Is it possible to have multiple error redirect handler in different access rules and how to share those error redirect handler in different access rules?

Yes, that’s possible - you can define different error handlers per access rule!

I tried to add error handler in access rules but got error. Do you have any example?

Please share your config and the error you received