FTP 150 File Status OK vs 228 Entering Long Passive Mode
FTP 150 (File Status OK) is a 1xx Positive Preliminary response, while 228 (Entering Long Passive Mode) 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, 228 means that entering Long Passive Mode. An extended version of passive mode that supports longer addresses, including IPv6. Largely superseded by EPSV (229).
Description
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.
When You See It
Right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.
How to Fix
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.
Description
Entering Long Passive Mode. An extended version of passive mode that supports longer addresses, including IPv6. Largely superseded by EPSV (229).
When You See It
After issuing the LPSV command on servers that support long addresses. Rarely seen in practice as EPSV is preferred.
How to Fix
No fix needed, but consider using EPSV (Extended Passive Mode) instead, which is more widely supported and simpler to parse.
Key Differences
150 is a 1xx Positive Preliminary response, while 228 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 228: Entering Long Passive Mode. An extended version of passive mode that supports longer addresses, including IPv6. Largely superseded by EPSV (229).
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 228 when after issuing the LPSV command on servers that support long addresses. Rarely seen in practice as EPSV is preferred.
When to Use Which
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 228 (Entering Long Passive Mode): No fix needed, but consider using EPSV (Extended Passive Mode) instead, which is more widely supported and simpler to parse.