[ 
https://issues.apache.org/activemq/browse/CAMEL-1083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47410#action_47410
 ] 

Claus Ibsen commented on CAMEL-1083:
------------------------------------

The patch also fixes CAMEL-1093.

To review:
- in case of exception should we return response code 500
- should we write the exception message and exception stracktrace as response 
body
- do we need a convient methods response body as string on the 
HttpOperationFailedException

> camel-http - should store content of response for http errors
> -------------------------------------------------------------
>
>                 Key: CAMEL-1083
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1083
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.1, 2.0.0
>
>         Attachments: camel_1083.patch
>
>
> Currently we do not store the content if there was a eg HTTP error 500 
> returned. But throw a HttpOperationFailedException.
> We should store the content also so end-users have access to this one as 
> well. Maybe add some strategy methods on the HttpProducer so end users can 
> override this class and create their own implementation.
> See nabble:
> http://www.nabble.com/HttpProducer%3A-how-to-access-the-body-of-an-error-page-i-td20475651s22882.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to