I am creating custom error pages for SpringBoot. It was quite easy with the 404 error. I wrote inside my application.properties
application.properties
server.error.whit