Hi,
i have a confusing issue while camel 3.7.5.
when i have below. i can get 500.(Working fine titled example)
However, if i have, HTTP response is not getting set to 500.
Can anyone provide any light on this?
Thanks.
from("direct:uploadFiles")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
exchange.getIn().setHeader(Exchange.HTTP_RESPONSE_CODE,
constant(500));
}
});
Working fine:
------
rest("/endpoint")
.consumes("application/json")
.produces("application/text")
.post("/upload")
.type(Void.class)
.to("direct:uploadFiles");
from("direct:uploadFiles")
.setHeader(Exchange.HTTP_RESPONSE_CODE, constant(500))