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.

설명

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.

이 코드를 보게 되는 경우

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

해결 방법

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.

설명

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

이 코드를 보게 되는 경우

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

해결 방법

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

주요 차이점

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.

언제 어떤 것을 사용할지

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.

더 알아보기