Forbbiden 403 - Redirect

0

Displaying an error message when I receive a 403 error, I would like the error message to be defined through an HTML page I created. Do you have any way to redirect? Using AngularJS or Spring itself?

I'm using AngularJS with Spring, how do I map it?

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Jul 31 15:20:43 BRT 2017
There was an unexpected error (type=Forbidden, status=403).
Access Denied
    
asked by anonymous 31.07.2017 / 21:34

1 answer

0

You can simply put a custom page inside the templates folder with the name error.html or error.jsp , spring will recognize and display if there is an error.

Within this page you will have access to some variables. Eg: error , path and message .

Note: The error page name should always be error + extension of your template system

    
31.07.2017 / 23:45