FTP

FTP 202 Command Superfluous vs 502 Command Not Implemented

FTP 202 (Command Superfluous) is a 2xx Positive Completion response, while 502 (Command Not Implemented) is a 5xx Permanent Negative response. 202 indicates that the command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect. In contrast, 502 means that command not implemented. The server recognizes the command but does not support it in its current configuration.

Descrição

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

Quando você o vê

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

Como corrigir

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

Descrição

Command not implemented. The server recognizes the command but does not support it in its current configuration.

Quando você o vê

When you use a valid FTP command that this particular server has not implemented, such as SITE or SMNT.

Como corrigir

Use an alternative command or approach. Check the server's FEAT response or HELP output to see which commands are actually supported.

Diferenças principais

1.

202 is a 2xx Positive Completion response, while 502 is a 5xx Permanent Negative response.

2.

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

3.

FTP 502: Command not implemented. The server recognizes the command but does not support it in its current configuration.

4.

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.

5.

You encounter 502 when when you use a valid FTP command that this particular server has not implemented, such as SITE or SMNT.

Quando usar qual

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 502 (Command Not Implemented): Use an alternative command or approach. Check the server's FEAT response or HELP output to see which commands are actually supported.

Saiba mais