camel-jetty - Exchange failures should not be returned as 200
-------------------------------------------------------------
Key: CAMEL-1093
URL: https://issues.apache.org/activemq/browse/CAMEL-1093
Project: Apache Camel
Issue Type: Bug
Components: camel-jetty
Affects Versions: 1.5.0
Reporter: Claus Ibsen
Fix For: 1.5.1, 2.0.0
The code below:
{code}
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
errorHandler(noErrorHandler());
from("jetty:http://localhost:8080/myapp/myservice").process(new
MyBookService());
}
};
}
public class MyBookService implements Processor {
public void process(Exchange exchange) throws Exception {
throw new IllegalArgumentException("Damm");
}
}
{code}
Will return http response code 200. We should let end users easily set what
response code they want and in case of route failures we should probably return
500 and return the stracktrace in the body
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.