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.

Description

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

Quand vous le voyez

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

Comment résoudre

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

Description

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

Quand vous le voyez

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

Comment résoudre

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

Différences clés

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.

Quand utiliser lequel

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.

En savoir plus