I have an apache camel rest api which downloads a file from S3. I send json input(key, bucketname, accessKey, secretKey, region)
in order to write the URI. The code
You need to use "onException" clause and create your own response in a processor there. See: https://camel.apache.org/manual/latest/exception-clause.html
onException(TheThrownException.class)
.handled(...) //--> depend on your need true or false
.continued(...) //--> depend on your need true or false
.process("processor1")
.to("direct:error-handling-endpoint")