FTP

FTP 200 Command OK vs 213 File Status

Both FTP 200 (Command OK) and 213 (File Status) belong to the 2xx Positive Completion category. 200 indicates that the command has been successfully executed. This is a general acknowledgment that the command was understood and carried out. Meanwhile, 213 means that file status reply. The server provides information about a specific file, typically its size or modification time.

描述

The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

何时出现

After issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

如何修复

No fix needed — the command succeeded. This is the standard positive response for commands that don't return data.

描述

File status reply. The server provides information about a specific file, typically its size or modification time.

何时出现

After issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.

如何修复

No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization.

主要区别

1.

FTP 200: The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

2.

FTP 213: File status reply. The server provides information about a specific file, typically its size or modification time.

3.

You encounter 200 when after issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

4.

You encounter 213 when after issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.

何时使用哪个

For 200 (Command OK): No fix needed — the command succeeded. This is the standard positive response for commands that don't return data. For 213 (File Status): No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization.

了解更多