title: How to pass the msg from HttpServletResponse.sendError(status, msg) to controller?
body: <p>This is the current java (1.8) spring call stack,</p>
  
  <ol>
  <li><p>interceptor</p>
  
  <p><code>preHandle(HttpServletRequest request, HttpServletResponse response) {
      response.sendError(403)
  }</code></p></li>
  <li><p>web.xml</p>
  
  <p><code>&lt;error-page&gt;
     &lt;error-code&gt;403&lt;/error-code&gt;
     &lt;location&gt;/error/forbidden&lt;/location&gt;
  &lt;/error-page&gt;</code></p></li>
  <li><p>errorController</p>
  
  <p><code>@RequestMapping(value="/error/forbidden")
  public ModelAndView forbidden () {
      // display fixed message "forbidden" in the web browser
  }</code></p></li>
  </ol>
  
  <p>Now in interceptor, i want to send back customized messages,
  <code>preHandle(HttpServletRequest, HttpServletResponse) {
      response.sendError(403, "my msg")
  }</code></p>
  
  <p>Controller is changed to </p>
  
  <pre><code>`@RequestMapping(value="/error/forbidden")
  public ModelAndView forbidden (HttpServletRequest request, HttpServletResponse response)`
  </code></pre>
  
  <p>The question is, when i debug into controller code, i cannot find "my msg" from response obj yet.</p>
  
  <p>Q1: am i doing the right way ?</p>
  
  <p>Q2: if so, where is "my msg" in the response ? if not, what's the correct way to do it pls ?</p>