I have a rest api created using WSO2 ESB. I want to change the HTTP status code to 404 when the requested API resource does not match with the given URL. Currently I am getting a 'HTTP/1.1 202 Accepted' response. My esb version is 4.0.3.
2
votes
3 Answers
0
votes
You can refer to wso2 documentation
<outSequence>
<property name="HTTP_SC" value="404" scope="axis2" />
<send/>
</outSequence>