Closed anisdismail closed 5 months ago
Hi There is currently no way to get the status code in the thymeleaf template. I logged an internal ticket to make this object available in the template.
Hi, this is now part of the ShinyProxy 3.1.0 we released today, see https://github.com/openanalytics/shinyproxy-config-examples/tree/master/04-custom-html-template#request-and-response-variables . Thank you for this suggestion!
I would like to extract the status codes to be able to create custom error pages for different errors. As implemented here:
Inside the ErrorController, the status code is not shared in the Thymeleaf mapper and instead a short error text is shared. As far as I have looked, there doesn't seem to be any way currently to extract the status codes and pass them through Thymeleaf. Any suggestions would be very appreciated!