FTP

FTP 150 File Status OK vs 226 Closing Data Connection

FTP 150 (File Status OK) is a 1xx Positive Preliminary response, while 226 (Closing Data Connection) is a 2xx Positive Completion response. 150 indicates that the file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer. In contrast, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.

Description

The file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer.

Quand vous le voyez

Right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.

Comment résoudre

No fix needed — this means the transfer is about to start. If the transfer stalls after this reply, check firewall rules blocking the data connection.

Description

Closing data connection. The requested file action was successful and the data connection is being closed.

Quand vous le voyez

After a file transfer, directory listing, or other data operation completes successfully.

Comment résoudre

No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.

Différences clés

1.

150 is a 1xx Positive Preliminary response, while 226 is a 2xx Positive Completion response.

2.

FTP 150: The file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer.

3.

FTP 226: Closing data connection. The requested file action was successful and the data connection is being closed.

4.

You encounter 150 when right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.

5.

You encounter 226 when after a file transfer, directory listing, or other data operation completes successfully.

Quand utiliser lequel

For 150 (File Status OK): No fix needed — this means the transfer is about to start. If the transfer stalls after this reply, check firewall rules blocking the data connection. For 226 (Closing Data Connection): No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.

En savoir plus