FTP

FTP 213 File Status vs 250 File Action OK

Both FTP 213 (File Status) and 250 (File Action OK) 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, 250 means that requested file action okay, completed. The operation on the file or directory was successful.

Описание

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.

Описание

Requested file action okay, completed. The operation on the file or directory was successful.

Когда вы это видите

After successfully changing directories (CWD), deleting a file (DELE), or renaming a file (RNTO).

Как исправить

No fix needed — the file operation completed successfully.

Ключевые различия

1.

FTP 213: File status reply. The server provides information about a specific file, typically its size or modification time.

2.

FTP 250: Requested file action okay, completed. The operation on the file or directory was successful.

3.

You encounter 213 when after issuing the SIZE or MDTM command, the server returns the file size in bytes or the last modification timestamp.

4.

You encounter 250 when after successfully changing directories (CWD), deleting a file (DELE), or renaming a file (RNTO).

Когда что использовать

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 250 (File Action OK): No fix needed — the file operation completed successfully.

Узнать больше