FTP 213 File Status vs 221 Closing Control Connection
Both FTP 213 (File Status) and 221 (Closing Control Connection) belong to the 2xx Positive Completion category. 213 indicates that file status reply. The server provides information about a specific file, typically its size or modification time. Meanwhile, 221 means that service closing control connection. The server is logging out and closing the session in response to a QUIT command.
Deskripsi
File status reply. The server provides information about a specific file, typically its size or modification time.
Ketika Anda Melihatnya
After issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.
Cara Memperbaiki
No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization.
Deskripsi
Service closing control connection. The server is logging out and closing the session in response to a QUIT command.
Ketika Anda Melihatnya
After issuing the QUIT command to gracefully disconnect from the FTP server.
Cara Memperbaiki
No fix needed — the session has ended normally. Reconnect with a new session if needed.
Perbedaan Utama
FTP 213: File status reply. The server provides information about a specific file, typically its size or modification time.
FTP 221: Service closing control connection. The server is logging out and closing the session in response to a QUIT command.
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 221 when after issuing the QUIT command to gracefully disconnect from the FTP server.
Kapan Menggunakan Yang Mana
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 221 (Closing Control Connection): No fix needed — the session has ended normally. Reconnect with a new session if needed.