FTP 125 Data Connection Open vs 213 File Status
FTP 125 (Data Connection Open) is a 1xx Positive Preliminary response, while 213 (File Status) is a 2xx Positive Completion response. 125 indicates that the data connection is already open and the transfer is beginning. No need to open a new data connection. In contrast, 213 means that file status reply. The server provides information about a specific file, typically its size or modification time.
説明
The data connection is already open and the transfer is beginning. No need to open a new data connection.
このコードが表示される場合
When the server reuses an existing data connection for a file transfer instead of opening a new one.
解決方法
No fix needed — the transfer is starting immediately. Your client should begin reading or writing data on the existing connection.
説明
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.
主な違い
125 is a 1xx Positive Preliminary response, while 213 is a 2xx Positive Completion response.
FTP 125: The data connection is already open and the transfer is beginning. No need to open a new data connection.
FTP 213: File status reply. The server provides information about a specific file, typically its size or modification time.
You encounter 125 when when the server reuses an existing data connection for a file transfer instead of opening a new one.
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 125 (Data Connection Open): No fix needed — the transfer is starting immediately. Your client should begin reading or writing data on the existing connection. 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.