FTP

FTP 213 File Status vs 426 Connection Closed

FTP 213 (File Status) is a 2xx Positive Completion response, while 426 (Connection Closed) is a 4xx Transient Negative response. 213 indicates that file status reply. The server provides information about a specific file, typically its size or modification time. In contrast, 426 means that connection closed; transfer aborted. The data connection was closed unexpectedly during a file transfer.

Descrição

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

Quando você o vê

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

Como corrigir

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

Descrição

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

Quando você o vê

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

Como corrigir

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

Diferenças principais

1.

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

2.

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

3.

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

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.

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.

Quando usar qual

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. 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.

Saiba mais