FTP

FTP 202 Command Superfluous vs 226 Closing Data Connection

Both FTP 202 (Command Superfluous) and 226 (Closing Data Connection) belong to the 2xx Positive Completion category. 202 indicates that the command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect. Meanwhile, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.

Mô tả

The command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect.

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

When you send a command the server recognizes but considers unnecessary, such as ALLO on a server that does not require pre-allocation.

Cách khắc phục

No fix needed — the server is telling you the command is not necessary. You can safely ignore this response and continue.

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.

FTP 202: The command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect.

2.

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

3.

You encounter 202 when when you send a command the server recognizes but considers unnecessary, such as ALLO on a server that does not require pre-allocation.

4.

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 202 (Command Superfluous): No fix needed — the server is telling you the command is not necessary. You can safely ignore this response and continue. 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