Is there a way to override the KeycloakErrorHandler?

I wanted to add some custom error handling, and I notice that there is a class that extends the ExceptionMapper , named KeycloakErrorHandler

KeycloakErrorHandler on github

but I couldn’t find a way to override some of these methods, neither a way to introduce my own error handler.

Can this be done?

1 Like

It’s a good question, cause I’m also trying to find way to do it.
Or any another way to change structure of error entity in response.