FTP 213 File Status vs 421 Service Not Available
FTP 213 (File Status) is a 2xx Positive Completion response, while 421 (Service Not Available) is a 4xx Transient Negative response. 213 indicates that file status reply. The server provides information about a specific file, typically its size or modification time. In contrast, 421 means that service not available, closing control connection. The server is shutting down or has reached its connection limit and cannot serve this request.
설명
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.
설명
Service not available, closing control connection. The server is shutting down or has reached its connection limit and cannot serve this request.
이 코드를 보게 되는 경우
When the FTP server is overloaded, shutting down for maintenance, or has reached its maximum number of concurrent connections.
해결 방법
Wait a few minutes and try reconnecting. If persistent, check if the server has a connection limit and whether your IP is being rate-limited.
주요 차이점
213 is a 2xx Positive Completion response, while 421 is a 4xx Transient Negative response.
FTP 213: File status reply. The server provides information about a specific file, typically its size or modification time.
FTP 421: Service not available, closing control connection. The server is shutting down or has reached its connection limit and cannot serve this request.
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 421 when when the FTP server is overloaded, shutting down for maintenance, or has reached its maximum number of concurrent connections.
언제 어떤 것을 사용할지
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 421 (Service Not Available): Wait a few minutes and try reconnecting. If persistent, check if the server has a connection limit and whether your IP is being rate-limited.