title: Custom error page using Thymeleaf
body: <p>I'm messing around with adding a custom error page to a Spring Boot project and I was curious if I need to do anything other than just create a new <code>error.html</code> page. </p>
  
  <p>I want the page to change for different messages obviously. But I noticed (on accident) that something like <code>&lt;h1 th:text="#{error.status_code}"&gt;404&lt;/h1&gt;</code> returns me <code>??error.status_code_en_US??</code>. Which I'm assuming is the status_code but not in a readable way or something? Is it possible to get that from just an error.html page? </p>
  
  <p>Some more.. </p>
  
  <pre><code>&lt;p  th:text="#{error.exception}"&gt;Default Error Message&lt;/p&gt;
  &lt;p  th:text="#{error.exception_type}"&gt;Default Error Message&lt;/p&gt;
  &lt;p  th:text="#{error.request_uri}"&gt;Default Error Message&lt;/p&gt;
  &lt;p  th:text="#{error.servlet_name}"&gt;Default Error Message&lt;/p&gt;
  </code></pre>
  
  <p>Generates: </p>
  
  <pre><code>??error.exception_en_US??
  ??error.exception_type_en_US??
  ??error.request_uri_en_US??
  ??error.servlet_name_en_US??
  </code></pre>