FTP

FTP 150 File Status OK vs 212 Directory Status

FTP 150 (File Status OK) is a 1xx Positive Preliminary response, while 212 (Directory Status) 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, 212 means that directory status reply. The server provides information about the current directory or a specified directory.

คำอธิบาย

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.

คำอธิบาย

Directory status reply. The server provides information about the current directory or a specified directory.

เมื่อคุณพบเห็น

After issuing the STAT command on a directory, the server returns the directory listing or status information.

วิธีแก้ไข

No fix needed — this is an informational response showing directory contents or status.

ความแตกต่างหลัก

1.

150 is a 1xx Positive Preliminary response, while 212 is a 2xx Positive Completion response.

2.

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.

3.

FTP 212: Directory status reply. The server provides information about the current directory or a specified directory.

4.

You encounter 150 when right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.

5.

You encounter 212 when after issuing the STAT command on a directory, the server returns the directory listing or status information.

ควรใช้อันไหนเมื่อไร

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 212 (Directory Status): No fix needed — this is an informational response showing directory contents or status.

เรียนรู้เพิ่มเติม