Thank you Sergey for checking it. To handle the status code, I have registered a containerresponsefilter.
I am able to see the status code but not sure how I can send it in the out message to the caller. Can you please help me with the correct handler type I need to register or something else. <cxf:rsServer id="netsuiteRsServer" address="http://localhost:8082/" loggingFeatureEnabled="true" loggingSizeLimit="-1"> <cxf:serviceBeans> <ref bean="niLoginEndPointImpl"/> </cxf:serviceBeans> <cxf:providers> <ref bean="authenicationFilter"/> <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/> </cxf:providers> </cxf:rsServer> <cxf:rsClient id="rsClient" address="http://localhost:8082/"> <cxf:providers> <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/> <bean class="com.accrualify.netsuite.integration.util.NIContainerResponseFilter"/> </cxf:providers> </cxf:rsClient> @Provider public class NIContainerResponseFilter implements ContainerResponseFilter { @Override public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { ContainerResponseContextImpl containerResponseContextImpl = (ContainerResponseContextImpl)responseContext; int status = containerResponseContextImpl.getStatus(); MultivaluedMap<String, Object> headers = containerResponseContextImpl.getHeaders(); headers.putSingle("HTTP.RESPONSE", "HTTP/1.1"+status); } } -- View this message in context: http://camel.465427.n5.nabble.com/camel-CxfRsProducer-not-returning-appropriate-error-status-codes-tp5779161p5779260.html Sent from the Camel - Users mailing list archive at Nabble.com.