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.

When You See It

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

How to Fix

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.

When You See It

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

How to Fix

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

Key Differences

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.

When to Use Which

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.

Learn More