title: What is the right way to handle error pages in moqui
body: <p>To redirect user to an error page I am adding entry in web.xml for 401 (Unauthorized) error code. But I don't find it correct. As, I am adding following code in web.xml which is in framework.</p>
  
  <pre><code>&lt;error-page&gt;
      &lt;error-code&gt;401&lt;/error-code&gt;
      &lt;location&gt;/myapp/Error/Error401.html&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>And, What if there are more than one component in my application and I want to redirect on different error pages on same error code as per component. Please guide me as to how can I achieve the same?</p>
  
  <p>Thanks in advance.</p>