FTP Constant Enumerations

This module contains all constant enumerations of FTP implementations. Available enumerations include:


FTP Commands *


FTP Return Codes

FTP Command

This module contains the constant enumeration for FTP Command, which is automatically generated from pcapkit.vendor.ftp.command.Command.

pcapkit.const.ftp.command.Command: defaultInfo[CommandType]

FTP commands.

class pcapkit.const.ftp.command.CommandType(*args, **kwargs)[source]

Bases: Info

FTP command type.

  • args (VT) –

  • kwargs (VT) –

Return type


name: str

Name of command.

feat: Optional[str]

Feature of command.

desc: Optional[str]

Description of command.

type: Optional[tuple[str, ...]]

Type of command.

conf: Optional[str]

Conformance of command.

note: Optional[tuple[str, ...]]

Note of command.

class pcapkit.const.ftp.command.defaultInfo(*args, **kwargs)[source]

Bases: Info[CommandType]

Extended Info with default values.

  • *args (VT) – Arbitrary positional arguments.

  • **kwargs (VT) – Arbitrary keyword arguments.

Return type



Missing keys as specified in RFC 3659.


key (str) – Key of missing command.

Return type


FTP Server Return Code

This module contains the constant enumeration for FTP Server Return Code, which is automatically generated from pcapkit.vendor.ftp.return_code.ReturnCode.

class pcapkit.const.ftp.return_code.ReturnCode(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

[ReturnCode] FTP Server Return Code

CODE_110 = 110

Restart marker replay. In this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy = mmmm where yyyy is User-process data stream marker, and mmmm server’s equivalent marker (note the spaces between markers and “=”).

CODE_120 = 120

Service ready in nnn minutes.

CODE_125 = 125

Data connection already open; transfer starting.

CODE_150 = 150

File status okay; about to open data connection.

CODE_202 = 202

Command not implemented, superfluous at this site.

CODE_211 = 211

System status, or system help reply.

CODE_212 = 212

Directory status.

CODE_213 = 213

File status.

CODE_214 = 214

Help message. Explains how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user.

CODE_215 = 215

NAME system type. Where NAME is an official system name from the registry kept by IANA.

CODE_220 = 220

Service ready for new user.

CODE_221 = 221

Service closing control connection.

CODE_225 = 225

Data connection open; no transfer in progress.

CODE_226 = 226

Closing data connection. Requested file action successful (for example, file transfer or file abort).

CODE_227 = 227

Entering Passive Mode (h1,h2,h3,h4,p1,p2).

CODE_228 = 228

Entering Long Passive Mode (long address, port).

CODE_229 = 229

Entering Extended Passive Mode (|||port|).

CODE_230 = 230

User logged in, proceed. Logged out if appropriate.

CODE_231 = 231

User logged out; service terminated.

CODE_232 = 232

Logout command noted, will complete when transfer done.

CODE_234 = 234

Specifies that the server accepts the authentication mechanism specified by the client, and the exchange of security data is complete. A higher level nonstandard code created by Microsoft.

CODE_250 = 250

Requested file action okay, completed.

CODE_257 = 257

“PATHNAME” created.

CODE_331 = 331

User name okay, need password.

CODE_332 = 332

Need account for login.

CODE_350 = 350

Requested file action pending further information

CODE_421 = 421

Service not available, closing control connection. This may be a reply to any command if the service knows it must shut down.

CODE_425 = 425

Can’t open data connection.

CODE_426 = 426

Connection closed; transfer aborted.

CODE_430 = 430

Invalid username or password

CODE_434 = 434

Requested host unavailable.

CODE_450 = 450

Requested file action not taken.

CODE_451 = 451

Requested action aborted. Local error in processing.

CODE_452 = 452

Requested action not taken. Insufficient storage space in system. File unavailable (e.g., file busy).

CODE_501 = 501

Syntax error in parameters or arguments.

CODE_502 = 502

Command not implemented.

CODE_503 = 503

Bad sequence of commands.

CODE_504 = 504

Command not implemented for that parameter.

CODE_530 = 530

Not logged in.

CODE_532 = 532

Need account for storing files.

CODE_534 = 534

Could Not Connect to Server - Policy Requires SSL

CODE_550 = 550

Requested action not taken. File unavailable (e.g., file not found, no access).

CODE_551 = 551

Requested action aborted. Page type unknown.

CODE_552 = 552

Requested file action aborted. Exceeded storage allocation (for current directory or dataset).

CODE_553 = 553

Requested action not taken. File name not allowed.

CODE_631 = 631

Integrity protected reply.

CODE_632 = 632

Confidentiality and integrity protected reply.

CODE_633 = 633

Confidentiality protected reply.

classmethod _missing_(value)[source]

Lookup function used when value is not found.


value (int) – Value to get enum item.

Return type