title: Change deferredResult HTTP status code on timeout
body: <p>I am using <code>deferredResult</code> on Spring MVC, but using this code, the timeout still are sending back the HTTP code 503 to the client.</p>
  
  <pre><code>future.onCompletion(new Runnable() {
      @Override
      public void run() {
  
          if(future.isSetOrExpired()){
              response.setStatus(HttpServletResponse.SC_NO_CONTENT);
          }
      }
  });
  </code></pre>
  
  <p>Any idea what else to try?</p>