Skip to content

Instantly share code, notes, and snippets.

@edgars
Created August 6, 2019 05:46
Show Gist options
  • Save edgars/b433abe0315fb30d78d1ea03dea41aa5 to your computer and use it in GitHub Desktop.
Save edgars/b433abe0315fb30d78d1ea03dea41aa5 to your computer and use it in GitHub Desktop.
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_resource_mismatch_handler_">
<payloadFactory>
<format>
<tp:fault xmlns:tp="http://test.com">
<tp:code>404</tp:code>
<tp:type>Status report</tp:type>
<tp:message>Not Found</tp:message>
<tp:description>The requested resource (/$1) is not available.</tp:description>
</tp:fault>
</format>
<args>
<arg xmlns:ns="http://org.apache.synapse/xsd" expression="$axis2:REST_URL_POSTFIX"/>
</args>
</payloadFactory>
<property name="RESPONSE" value="true" scope="default"/>
<property name="NO_ENTITY_BODY" action="remove" scope="axis2"/>
<property name="HTTP_SC" value="404" scope="axis2"/>
<header name="To" action="remove"/>
<send/>
<drop/>
</sequence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment