title: Set HTTP status code for inbound gateway reply timeout?
body: <p>I'm creating a web service that is a gateway to another web service. I'm using the Spring Integration framework, specifically an <code>Http Inbound Gateway</code> to accept incoming requests. When the <code>reply-timeout</code> is triggered, a 200 status code is returned. Ideally I'd like to return a 504 since my web service has not received a timely reply from the other web service I'm communicating with. </p>
  
  <pre><code> &lt;int-http:inbound-gateway request-channel="authorizationRequestsChannel"
                        reply-channel="myReplyChannel"
                        path="/endpoint"
                        reply-timeout="30000"
                        supported-methods="POST" /&gt;
  </code></pre>
  
  <p><strong>tl;dr</strong> 
  <p>
  When the reply channel times-out, the <code>inbound-gateway</code> returns a 200 status code. Is it possible to set the status code to another value? </p>