FTP 150 File Status OK vs 226 Closing Data Connection
FTP 150 (File Status OK) is a 1xx Positive Preliminary response, while 226 (Closing Data Connection) is a 2xx Positive Completion response. 150 indicates that the file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer. In contrast, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.
Описание
The file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer.
Когда вы это видите
Right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.
Как исправить
No fix needed — this means the transfer is about to start. If the transfer stalls after this reply, check firewall rules blocking the data connection.
Описание
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.
Ключевые различия
150 is a 1xx Positive Preliminary response, while 226 is a 2xx Positive Completion response.
FTP 150: The file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer.
FTP 226: Closing data connection. The requested file action was successful and the data connection is being closed.
You encounter 150 when right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.
You encounter 226 when after a file transfer, directory listing, or other data operation completes successfully.
Когда что использовать
For 150 (File Status OK): No fix needed — this means the transfer is about to start. If the transfer stalls after this reply, check firewall rules blocking the data connection. 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.