FTP 213 File Status vs 501 Syntax Error in Arguments
FTP 213 (File Status) is a 2xx Positive Completion response, while 501 (Syntax Error in Arguments) is a 5xx Permanent Negative response. 213 indicates that file status reply. The server provides information about a specific file, typically its size or modification time. In contrast, 501 means that syntax error in parameters or arguments. The command was recognized but its arguments are invalid or malformed.
説明
File status reply. The server provides information about a specific file, typically its size or modification time.
このコードが表示される場合
After issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.
解決方法
No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization.
説明
Syntax error in parameters or arguments. The command was recognized but its arguments are invalid or malformed.
このコードが表示される場合
When you use a valid command but with wrong parameters, such as an invalid path format or incorrect argument count.
解決方法
Review the command's required argument format. Common issues include missing quotes around paths with spaces or invalid character encoding.
主な違い
213 is a 2xx Positive Completion response, while 501 is a 5xx Permanent Negative response.
FTP 213: File status reply. The server provides information about a specific file, typically its size or modification time.
FTP 501: Syntax error in parameters or arguments. The command was recognized but its arguments are invalid or malformed.
You encounter 213 when after issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.
You encounter 501 when when you use a valid command but with wrong parameters, such as an invalid path format or incorrect argument count.
どちらをいつ使うか
For 213 (File Status): No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization. For 501 (Syntax Error in Arguments): Review the command's required argument format. Common issues include missing quotes around paths with spaces or invalid character encoding.