FTP Коды состояния

A standard protocol for transferring files between a client and server. FTP reply codes indicate the status of file transfer operations.

Просмотреть спецификацию →

О FTP

FTP, defined in RFC 959 (1985), is one of the oldest Internet protocols still in active use. It uses two separate channels: a control connection (port 21) for commands and replies, and a data connection (port 20 in active mode, or a negotiated port in passive mode) for file transfers. FTP reply codes are three-digit numbers: 1xx indicates a positive preliminary reply (command accepted, awaiting more), 2xx signals successful completion, 3xx means an intermediate reply requiring further input, 4xx indicates a transient negative (temporary failure, retry may succeed), and 5xx a permanent negative error. While FTP itself transmits credentials in plain text, FTPS (FTP over TLS) and SFTP (SSH File Transfer Protocol) provide encrypted alternatives. Despite the rise of HTTP-based file transfer and cloud storage, FTP remains widely used in legacy enterprise systems, web hosting, and automated batch processing.

Порт по умолчанию: 21 · Wikipedia

100-199 1xx Positive Preliminary

The requested action is being initiated. Expect another reply before sending a new command. These indicate the command was accepted and the server is working on it.

200-299 2xx Positive Completion

The requested action has been successfully completed. A new command may be sent.

200
Command OK

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

202
Command Superfluous

The command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect.

211
System Status

System status or system help reply. The server provides information about its current status or available features.

212
Directory Status

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

213
File Status

File status reply. The server provides information about a specific file, typically its size or modification time.

214
Help Message

Help message. The server provides information about its implementation status, including a list of recognized commands or help for a …

215
System Type

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

220
Service Ready

Service ready for new user. This is the greeting message sent by the FTP server when a client first connects.

221
Closing Control Connection

Service closing control connection. The server is logging out and closing the session in response to a QUIT command.

225
Data Connection Open

Data connection open; no transfer in progress. The data channel is established and ready but no file transfer has started …

226
Closing Data Connection

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

227
Entering Passive Mode

Entering Passive Mode. The server provides an IP address and port number for the client to connect to for data …

228
Entering Long Passive Mode

Entering Long Passive Mode. An extended version of passive mode that supports longer addresses, including IPv6. Largely superseded by EPSV …

229
Entering Extended Passive Mode

Entering Extended Passive Mode. The server provides only a port number for the data connection, using the same IP as …

230
User Logged In

User logged in, proceed. The authentication was successful and the user has full access to the FTP server.

250
File Action OK

Requested file action okay, completed. The operation on the file or directory was successful.

257
Pathname Created

Pathname created. The server confirms the creation of a new directory or reports the current working directory path.

300-399 3xx Positive Intermediate

The command has been accepted but the server needs further information to complete the request. Send the additional data to proceed.

400-499 4xx Transient Negative

The command was not accepted and the requested action did not take place. The error condition is temporary and the action may be requested again.

500-599 5xx Permanent Negative

The command was not accepted and the requested action did not take place. The error is permanent and the same command should not be retried without changes.

500
Syntax Error

Syntax error, command unrecognized. The server could not parse the command. This may also be sent when the command line …

501
Syntax Error in Arguments

Syntax error in parameters or arguments. The command was recognized but its arguments are invalid or malformed.

502
Command Not Implemented

Command not implemented. The server recognizes the command but does not support it in its current configuration.

503
Bad Sequence

Bad sequence of commands. The command is valid but was sent in the wrong order relative to other commands.

504
Parameter Not Implemented

Command not implemented for that parameter. The command is supported but not with the specific parameter value provided.

530
Not Logged In

Not logged in. The user is not authenticated and must log in before the requested command can be executed.

532
Need Account for Storing

Need account for storing files. The server requires an ACCT command before it will allow file uploads, even though the …

550
File Unavailable

Requested action not taken. File unavailable — the file does not exist, the path is wrong, or you do not …

551
Page Type Unknown

Requested action aborted: page type unknown. The server does not recognize the requested page structure or format.

552
Exceeded Storage Allocation

Requested file action aborted. Exceeded storage allocation for the current directory or dataset. The user's quota has been reached.

553
File Name Not Allowed

Requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem …

Руководства по FTP

Глоссарий FTP