FTP

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.

मुख्य अंतर

1.

150 is a 1xx Positive Preliminary response, while 221 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 221: Service closing control connection. The server is logging out and closing the session in response to a QUIT command.

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

और जानें