Could it be possible to receive different return code base on different possible error.
Actually, all messages below are returning a code equal to 2
DataTransferException: Permission denied
DataTransferException: File already exists on destination host
DataTransferException: Connection exception.
The return code is also equal to 2 in case of no file is available.
DataTransferException: Source file does not exist
DataTransferException: No files to transfer based on regular expression
It could be very interesting to have different return code to manage properly the automation of the workflow.