FTP

FTP 120 Service Ready Soon vs 226 Closing Data Connection

FTP 120 (Service Ready Soon) is a 1xx Positive Preliminary response, while 226 (Closing Data Connection) is a 2xx Positive Completion response. 120 indicates that the service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly. In contrast, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.

Mô tả

The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.

Khi bạn thấy mã này

When connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.

Cách khắc phục

Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator.

Mô tả

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

Khi bạn thấy mã này

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

Cách khắc phục

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

Sự khác biệt chính

1.

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

2.

FTP 120: The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.

3.

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

4.

You encounter 120 when when connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.

5.

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

Khi nào dùng cái nào

For 120 (Service Ready Soon): Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator. 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.

Tìm hiểu thêm