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.
Beschreibung
File status reply. The server provides information about a specific file, typically its size or modification time.
Wann Sie es sehen
After issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.
Wie man es behebt
No fix needed — this is an informational response. Use the returned data to determine file size before download or to check timestamps for synchronization.
Beschreibung
Service closing control connection. The server is logging out and closing the session in response to a QUIT command.
Wann Sie es sehen
After issuing the QUIT command to gracefully disconnect from the FTP server.
Wie man es behebt
No fix needed — the session has ended normally. Reconnect with a new session if needed.
Wesentliche Unterschiede
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.
Wann welchen verwenden
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.