FTP 200 Command OK vs 202 Command Superfluous
Both FTP 200 (Command OK) and 202 (Command Superfluous) belong to the 2xx Positive Completion category. 200 indicates that the command has been successfully executed. This is a general acknowledgment that the command was understood and carried out. Meanwhile, 202 means that the command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect.
描述
The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.
何时出现
After issuing any command that completes successfully, such as TYPE, MODE, or NOOP.
如何修复
No fix needed — the command succeeded. This is the standard positive response for commands that don't return data.
描述
The command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect.
何时出现
When you send a command the server recognizes but considers unnecessary, such as ALLO on a server that does not require pre-allocation.
如何修复
No fix needed — the server is telling you the command is not necessary. You can safely ignore this response and continue.
主要区别
FTP 200: The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.
FTP 202: The command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect.
You encounter 200 when after issuing any command that completes successfully, such as TYPE, MODE, or NOOP.
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.
何时使用哪个
For 200 (Command OK): No fix needed — the command succeeded. This is the standard positive response for commands that don't return data. 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.