You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2020/09/07 14:53:00 UTC

[jira] [Created] (CAMEL-15507) Make vertx-http component error handling consistent with other HTTP client components

James Netherton created CAMEL-15507:
---------------------------------------

             Summary: Make vertx-http component error handling consistent with other HTTP client components
                 Key: CAMEL-15507
                 URL: https://issues.apache.org/jira/browse/CAMEL-15507
             Project: Camel
          Issue Type: Improvement
    Affects Versions: 3.5.0
            Reporter: James Netherton
            Assignee: James Netherton
             Fix For: 3.6.0


Something I noticed with the vertx-http component, is that if the target endpoint returns an error response code, the way in which the error state is handled is slightly different to other Camel HTTP client components.

Usually the HTTP response code, response body etc are only set on the HttpOperationFailedException. camel-vertx-http does this, but it also sets them on the exchange just as if when the response is successful.

The behaviour should be consistent with the other components.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)