FTP

FTP 200 Command OK vs 350 File Action Pending

FTP 200 (Command OK) is a 2xx Positive Completion response, while 350 (File Action Pending) is a 3xx Positive Intermediate response. 200 indicates that the command has been successfully executed. This is a general acknowledgment that the command was understood and carried out. In contrast, 350 means that requested file action pending further information. The server has accepted the first part of a two-step command and is waiting for the follow-up.

Deskripsi

The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

Ketika Anda Melihatnya

After issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

Cara Memperbaiki

No fix needed — the command succeeded. This is the standard positive response for commands that don't return data.

Deskripsi

Requested file action pending further information. The server has accepted the first part of a two-step command and is waiting for the follow-up.

Ketika Anda Melihatnya

After issuing RNFR (rename from) to specify which file to rename. The server is waiting for the RNTO (rename to) command.

Cara Memperbaiki

Send the follow-up command immediately — typically RNTO after RNFR, or REST followed by RETR for resumed transfers.

Perbedaan Utama

1.

200 is a 2xx Positive Completion response, while 350 is a 3xx Positive Intermediate response.

2.

FTP 200: The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

3.

FTP 350: Requested file action pending further information. The server has accepted the first part of a two-step command and is waiting for the follow-up.

4.

You encounter 200 when after issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

5.

You encounter 350 when after issuing RNFR (rename from) to specify which file to rename. The server is waiting for the RNTO (rename to) command.

Kapan Menggunakan Yang Mana

For 200 (Command OK): No fix needed — the command succeeded. This is the standard positive response for commands that don't return data. For 350 (File Action Pending): Send the follow-up command immediately — typically RNTO after RNFR, or REST followed by RETR for resumed transfers.

Pelajari Lebih Lanjut