FTP

FTP 200 Command OK vs 553 File Name Not Allowed

FTP 200 (Command OK) is a 2xx Positive Completion response, while 553 (File Name Not Allowed) is a 5xx Permanent Negative response. 200 indicates that the command has been successfully executed. This is a general acknowledgment that the command was understood and carried out. In contrast, 553 means that requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.

Descrição

The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

Quando você o vê

After issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

Como corrigir

No fix needed — the command succeeded. This is the standard positive response for commands that don't return data.

Descrição

Requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.

Quando você o vê

When you try to create or rename a file with characters the server's filesystem does not allow, such as special characters or reserved names.

Como corrigir

Rename the file to use only allowed characters. Avoid special characters like ?, *, |, <, >, and leading/trailing spaces or dots.

Diferenças principais

1.

200 is a 2xx Positive Completion response, while 553 is a 5xx Permanent Negative response.

2.

FTP 200: The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

3.

FTP 553: Requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.

4.

You encounter 200 when after issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

5.

You encounter 553 when when you try to create or rename a file with characters the server's filesystem does not allow, such as special characters or reserved names.

Quando usar qual

For 200 (Command OK): No fix needed — the command succeeded. This is the standard positive response for commands that don't return data. For 553 (File Name Not Allowed): Rename the file to use only allowed characters. Avoid special characters like ?, *, |, <, >, and leading/trailing spaces or dots.

Saiba mais