Skip to content

Instantly share code, notes, and snippets.

@dulichan
Created September 16, 2015 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dulichan/90b8cfe840eb2248b267 to your computer and use it in GitHub Desktop.
Save dulichan/90b8cfe840eb2248b267 to your computer and use it in GitHub Desktop.
Returning 404 response for WSO2 ESB instead of 202
<!-- Exact sequence name as below should be there. This name is used inside the API implementation in Synapse -->
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_resource_mismatch_handler_">
<log level="full"/>
<property name="HTTP_SC" value="404" scope="axis2"></property>
<respond/>
<drop></drop>
</sequence>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="main">
<description>The main sequence for the message mediation</description>
<in>
<!-- Log all messages passing through -->
<log level="full"/>
<!-- Return 404 -->
<property name="HTTP_SC" value="404" scope="axis2"></property>
<respond/>
<drop></drop>
</in>
</sequence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment