FTP

FTP 215 System Type vs 226 Closing Data Connection

Both FTP 215 (System Type) and 226 (Closing Data Connection) belong to the 2xx Positive Completion category. 215 indicates that the NAME system type, where NAME is an official system name from the list in the Assigned Numbers document. Reports the operating system of the server. Meanwhile, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.

Описание

The NAME system type, where NAME is an official system name from the list in the Assigned Numbers document. Reports the operating system of the server.

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

After issuing the SYST command. The server reports its operating system type, commonly 'UNIX Type: L8' or 'Windows_NT'.

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

No fix needed — use this information to adjust path separators and line endings for the server's OS type.

Описание

Closing data connection. The requested file action was successful and the data connection is being closed.

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

After a file transfer, directory listing, or other data operation completes successfully.

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

No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.

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

1.

FTP 215: The NAME system type, where NAME is an official system name from the list in the Assigned Numbers document. Reports the operating system of the server.

2.

FTP 226: Closing data connection. The requested file action was successful and the data connection is being closed.

3.

You encounter 215 when after issuing the SYST command. The server reports its operating system type, commonly 'UNIX Type: L8' or 'Windows_NT'.

4.

You encounter 226 when after a file transfer, directory listing, or other data operation completes successfully.

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

For 215 (System Type): No fix needed — use this information to adjust path separators and line endings for the server's OS type. For 226 (Closing Data Connection): No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.

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