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.

詳しく見る