Camel will handle according to the HTTP response code:
Response code is in the range 100..299, Camel regards it as a success response.
Response code is in the range 300..399, Camel regards it as a redirection response and will throw a
HttpOperationFailedExceptionwith the information.
Response code is 400+, Camel regards it as an external server failure and will throw a
AhcOperationFailedExceptionwith the information.
throwExceptionOnFailure, can be set to
falseto prevent the
AhcOperationFailedExceptionfrom being thrown for failed response codes. This allows you to get any response from the remote server.