jftp Return Codes
When jftp
sends an FTP return code, it omits the final digit. This is because on some operating systems, the return code is limited to a value between 0 and 255, so it cannot reflect all FTP return codes.
Note: Return codes, also referred to as reply codes, give feedback on the status a command. RFCs define the standards for protocols to allow tools to inter-operate. However, vendors do not have to adhere to RFCs, and many don't adhere totally. However, jftp
will return standard FTP return codes if the FTP server does.
On UNIX and Microsoft Windows, jftp
returns the following values.
- 0: If the call was successful.
- 1: If there was an error.
- If the last FTP return code was above 400, the first two digits of that return code.