Reputation: 81
Is there any possibility to change the way how Keycloak displays pages for bad responses(404, 500)? Maybe redirection or changing template for these pages? Simple view of 404
Upvotes: 8
Views: 4170
Reputation: 141
Others that might come here looking for the answer, Keycloak does not support Statuscodes for the error page, but by using custom templating for login, you can detect it yourself in the frontend. I found my solution here
Upvotes: 0
Reputation: 73
See this link, https://lists.jboss.org/pipermail/keycloak-user/2018-June/014439.html
"... As long as the URL of the error page includes the realm it will use the login theme for that realm. Otherwise it will fallback to the login theme of the master realm. ..."
Upvotes: 1