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.