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

Jason Chaffee edited comment on CAMEL-6469 at 6/20/13 5:08 AM:
---------------------------------------------------------------

Another options is to simply add the ReasonPhrase as well as the StatusCode to 
properties on the exchange

I like this better as they are a String and a int so you don't have to have a 
compile dependency (tight coupling) on httpcomponents to get the info.
                
      was (Author: jasonchaffee):
    Another options is to simply add the ReasonPhrase as well as the StatusCode 
to properties on the exchange.
                  
> Add StatusLine object to exchange in populateResponse
> -----------------------------------------------------
>
>                 Key: CAMEL-6469
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6469
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-http
>            Reporter: Jason Chaffee
>
> If throwing exceptions are turned off, there is no way to get the same 
> information that is used construct the exception when throwing them.  There 
> should be an exchange property for the StatusLine object in camel-http4 just 
> like there is for the response code.  In fact, if the StatusLine object is 
> available, there is no need for the response code property.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to