Yes, set the http_statusCode
header in the reply message to 204.
EDIT: (see comments below)
<int-http:inbound-gateway request-channel="receiveChannel"
path="/receiveGateway"
supported-methods="POST"/>
<int:publish-subscribe-channel id="receiveChannel" task-executor="exec" />
<int:service-activator input-channel="receiveChannel" expression="payload + ' from the other side'" output-channel="next"/>
<int:chain input-channel="receiveChannel">
<int:header-enricher>
<int:header name="http_statusCode" value="204"/>
</int:header-enricher>
<int:transformer expression="''"/>
</int:chain>
Assumes the main flow doesn't return a result.
If you want to wait until the flow completes, remove the task executor.
You probably also need a transformer, to transform the payload to ""
.