CFtpClient::GetResultCode Method  
 
INT GetResultCode();

The GetResultCode method reads the result code returned by the server in response to a command. The result code is a three-digit numeric code, and indicates if the operation succeeded, failed or requires additional action by the client.

Parameters

None.

Return Value

If the method succeeds, the return value is the result code. If the method fails, the return value is FTP_ERROR. To get extended error information, call GetLastError.

Remarks

Result codes are three-digit numeric values returned by the server. They may be broken down into the following ranges:

Value Description
100-199 Positive preliminary result. This indicates that the requested action is being initiated, and the client should expect another reply from the server before proceeding.
200-299 Positive completion result. This indicates that the server has successfully completed the requested action.
300-399 Positive intermediate result. This indicates that the requested action cannot complete until additional information is provided to the server.
400-499 Transient negative completion result. This indicates that the requested action did not take place, but the error condition is temporary and may be attempted again.
500-599 Permanent negative completion result. This indicates that the requested action did not take place.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: csftpv11.lib

See Also

Command, GetResultString