FTP 212 Directory Status vs 553 File Name Not Allowed
FTP 212 (Directory Status) is a 2xx Positive Completion response, while 553 (File Name Not Allowed) is a 5xx Permanent Negative response. 212 indicates that directory status reply. The server provides information about the current directory or a specified directory. 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.
설명
Directory status reply. The server provides information about the current directory or a specified directory.
이 코드를 보게 되는 경우
After issuing the STAT command on a directory, the server returns the directory listing or status information.
해결 방법
No fix needed — this is an informational response showing directory contents or status.
설명
Requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.
이 코드를 보게 되는 경우
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.
해결 방법
Rename the file to use only allowed characters. Avoid special characters like ?, *, |, <, >, and leading/trailing spaces or dots.
주요 차이점
212 is a 2xx Positive Completion response, while 553 is a 5xx Permanent Negative response.
FTP 212: Directory status reply. The server provides information about the current directory or a specified directory.
FTP 553: Requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.
You encounter 212 when after issuing the STAT command on a directory, the server returns the directory listing or status information.
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.
언제 어떤 것을 사용할지
For 212 (Directory Status): No fix needed — this is an informational response showing directory contents or status. For 553 (File Name Not Allowed): Rename the file to use only allowed characters. Avoid special characters like ?, *, |, <, >, and leading/trailing spaces or dots.