Fail (-FAIL)

Fail (-FAIL) is an optional command that allows you to specify particular error codes that cause the adapter to fail and disconnect from the FTP server.

The default behavior of the FTP adapter is to pass 100 and 200 level error codes and to fail only on 300, 400, and 500 level error codes as defined in RFC 959. Any other error codes returned are ignored. By using the Fail adapter command, you can specify the error codes, such as from third-party data, for which the adapter fails.

The Fail adapter command must be specified with a numerical integer for the error code. You can specify multiple error codes if needed.


-FAIL error_code[:error_code...]
Option
Description
error_code
Any numerical integer return code except 100, 200, 300, 400, and 500 level FTP error codes as defined in RFC 959 that you want the adapter to fail on.

Use a colon (:) to separate multiple error codes. For example, the following command indicates that the adapter will fail on return codes 13 and 24:

-FAIL 13:24