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

Scott Cranton commented on CAMEL-11111:
---------------------------------------

Looking at UndertowProducer and UndertowClientCallback, I don't see any code to 
handle HTTP_RESPONSE_CODE indicating an error. Not clear where or what 
exception should be thrown. Feels like a response code check when 
throwExceptionOnFailure=true should happen here - 
https://github.com/apache/camel/blob/master/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowClientCallback.java#L167-L167

> Camel-Undertow: throwExceptionOnFailure doesn't work as expected
> ----------------------------------------------------------------
>
>                 Key: CAMEL-11111
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11111
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-undertow
>    Affects Versions: 2.19.0
>            Reporter: Scott Cranton
>
> When using camel-undertow as a producer and HTTP_RESPONSE_CODE is 404, the 
> producer does NOT throw an exception as expected. Setting 
> throwExceptionOnFailure appears to have no effect.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to