Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Cannot Reproduce
-
2.21.0
-
None
-
Unknown
Description
If you do a simple route from a "cxfrs:" endpoint into a processor that does standard "camel" type things like:
exchange.getOut().setBody("Can't found the customer with uri " + path); exchange.getOut().setHeader(Exchange.CONTENT_TYPE, "text/plain"); exchange.getOut().setHeader(Exchange.HTTP_RESPONSE_CODE, "404"); exchange.getOut().setFault(true);
the setHeader values are ignored and not sent back to the client. They always get response code 200. If you use a javax.ws.rs.core.Response object, it works fine.