Error codes for FTP functions
The table below lists the possible error codes for the WinTask FTP functions, for the errors stopping script execution (unless #IgnoreErrors=1).
9
File or path does not exist
80
The file already exists
550
Requested action not taken. File unavailable (e.g., file not found, no access)
553
Requested action not taken. File name not allowed
12001
No more handles could be generated at this time
12002
The request has timed out
12003
An extended error was returned from the server
12004
An internal error has occurred
12005
The URL is invalid
12006
The URL scheme could not be recognized or is not supported
12007
The server name could not be resolved
12008
The requested protocol could not be located
12012
Internet function support is being shut down or unloaded
12013
The request to connect and log on to an FTP server could not be completed because the supplied user name is incorrect
12014
The request to connect and log on to an FTP server could not be completed because the supplied password is incorrect
12015
The request to connect to and log on to an FTP server failed
12016
The requested operation is invalid
12017
The operation was canceled
12020
The request cannot be made via a proxy
12021
A required registry value could not be located
12022
A required registry value was located but is an incorrect type or has an invalid value
12023
Direct network access cannot be made at this time
12026
The required operation could not be completed because one or more requests are pending
12028
The requested item could not be located
12029
The attempt to connect to the server failed
12030
The connection with the server has been terminated
12037
SSL certificate date that was received from the server is bad. The certificate is expired
12038
SSL certificate common name (host name field) is incorrect
12039
The application is moving from a non-SSL to an SSL connection because of a redirect
12040
The application is moving from an SSL to an non-SSL connection because of a redirect
12110
The requested operation cannot be made on the FTP session handle because an operation is already in progress
12111
The FTP operation was not completed because the session was aborted
12156
The redirection failed because either the scheme changed (for example, HTTP to FTP) or all attempts made to redirect failed (default is five attempts)