WSO2 EI/ESB Change Backend Response Status Code

With WSO2 Enterprise Integrator or Enterprise Service Bus servers, if you want to change the backend server response code, you can set custom status status code as below:

 <property name="HTTP_SC" scope="axis2" type="STRING" value="403"/>

If you are getting 'HTTP/1.1 202 Accepted' response from your backend, you need to set "SC_ACCEPTED" as false by setting a custom SC_ACCEPTED

Ex:  Receiving 202 from backend and change it to 200

<filter regex="202" source="$axis2:HTTP_SC">
            <property action="remove" name="HTTP_SC" scope="axis2"/>
            <property name="SC_ACCEPTED" scope="axis2" value="false"/>
            <property name="HTTP_SC" scope="axis2" type="STRING" value="200"/>


shanthijain said…
Such a nice article thanks for sharing this with us. Really so impressible and interesting post.
You’re doing a great job Man, Keep it up.
Full Stack Course in Hyderabad
Full Stack Developer Course in Gurgaon
Full Stack Developer Course in Pune
Best Full Stack Developer Course in Mumbai
Anonymous said…
Thanks for sharing.
We at Antino Labs believe in redefining and refining our model to suit the industry's requirements. Antino Labs' several years of experience in the market has let us register our global presence. Antino Labs' has the vision to become the world's most trusted partner for digital transformation and we aim to become a brand that defines innovation and the latest technology. We offer clients a one-stop solution for all their interests. Click the below links if you're looking for Web Development Company in Gurgaon, Website Designing Company in Gurgaon, Technology Consulting Services, Ecommerce Account Management Services, Mobile App Development Company in Gurgaonand UI/UX Design Services.

Popular posts from this blog

Building a RESTFul Service using Spring Boot

Secure Spring Boot REST API using Basic Authentication

Yield Price Sri Lanka - Android Application