Hi,
I'm a Camel newbie, but from what I've seen so far it looks like a fantastic
framework and a great addition to the old toolbox! I've been trying to
create a simple flow between a Jetty consumer endpoint and a Http producer
endpoint to provide a rudimentary proxying capability. I setup a simple
flow like this:
from("jetty:http://...").to("http://...")
This works, but I've seen that the response code that comes back from Jetty
is always 200 even if what comes back from the Http producer is something
else (i.e. 500, 404, etc.). In looking at the source it looks like
HttpBinding.writeResponse could call setStatus and/or sendError to send back
non 200 Ok responses. The status code (I think) could be checked with the
http.responseCode header if present. Similarly, could the HttpProducer also
set StatusLine information (i.e. httpVersion, statusCode, reasonPhrase)
headers so that the HttpBinding could set these in the response?
Any insight on this would be great. Also, thanks again for such a great
framework!
Dave
--