FTP 150 File Status OK vs 221 Closing Control Connection
FTP 150 (File Status OK) is a 1xx Positive Preliminary response, while 221 (Closing Control 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, 221 means that service closing control connection. The server is logging out and closing the session in response to a QUIT command.
説明
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.
説明
Service closing control connection. The server is logging out and closing the session in response to a QUIT command.
このコードが表示される場合
After issuing the QUIT command to gracefully disconnect from the FTP server.
解決方法
No fix needed — the session has ended normally. Reconnect with a new session if needed.
主な違い
150 is a 1xx Positive Preliminary response, while 221 is a 2xx Positive Completion response.
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.
FTP 221: Service closing control connection. The server is logging out and closing the session in response to a QUIT command.
You encounter 150 when right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.
You encounter 221 when after issuing the QUIT command to gracefully disconnect from the FTP server.
どちらをいつ使うか
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 221 (Closing Control Connection): No fix needed — the session has ended normally. Reconnect with a new session if needed.