...
Info |
|
Jetty is stream based, which means the input it receives is submitted to Camel as a stream. That means you will only be able to read the content of the stream once. If you find a situation where the message body appears to be empty or you need to access the Exchange.HTTP_RESPONSE_CODE data multiple times (ege.g.: doing multicasting, or redelivery error handling) , you should use Stream caching or convert the message body to a String which is safe to be re-read multiple times. |
...
If the exchange was processed successfully, the 200 HTTP status code is returned.
If the exchange failed with an exception, the 500 HTTP status code is returned, and the stacktrace is returned in the body. If you want to specify which HTTP status code to return, set the code in the HttpProducerExchange.HTTP_RESPONSE_CODE
header of the OUT message.
...