FTP

FTP 212 Directory Status vs 426 Connection Closed

FTP 212 (Directory Status) is a 2xx Positive Completion response, while 426 (Connection Closed) is a 4xx Transient Negative response. 212 indicates that directory status reply. The server provides information about the current directory or a specified directory. In contrast, 426 means that connection closed; transfer aborted. The data connection was closed unexpectedly during a file transfer.

説明

Directory status reply. The server provides information about the current directory or a specified directory.

このコードが表示される場合

After issuing the STAT command on a directory, the server returns the directory listing or status information.

解決方法

No fix needed — this is an informational response showing directory contents or status.

説明

Connection closed; transfer aborted. The data connection was closed unexpectedly during a file transfer.

このコードが表示される場合

When a file transfer is interrupted due to a network timeout, client disconnect, or the data connection dropping mid-transfer.

解決方法

Retry the transfer. If it keeps failing, check network stability, increase timeout values, and verify there are no firewalls killing idle connections.

主な違い

1.

212 is a 2xx Positive Completion response, while 426 is a 4xx Transient Negative response.

2.

FTP 212: Directory status reply. The server provides information about the current directory or a specified directory.

3.

FTP 426: Connection closed; transfer aborted. The data connection was closed unexpectedly during a file transfer.

4.

You encounter 212 when after issuing the STAT command on a directory, the server returns the directory listing or status information.

5.

You encounter 426 when when a file transfer is interrupted due to a network timeout, client disconnect, or the data connection dropping mid-transfer.

どちらをいつ使うか

For 212 (Directory Status): No fix needed — this is an informational response showing directory contents or status. For 426 (Connection Closed): Retry the transfer. If it keeps failing, check network stability, increase timeout values, and verify there are no firewalls killing idle connections.

詳しく見る