I’m designing my 403 page and I can’t seem to obtain the ‘reason’ string which I am populating on various forbidden pages to give a more relative response to the issue at hand. If I type ${response.reason} in the template, the whole page gets replaced with just the text of the response.
Share
In the code it seems that you can get this value in your template by doing
result is your Forbidden object that inherits from RuntimeException and the description you provide is passed to the base class as the exception message