File Transfer Protocol - FTP Reply Codes

FTP Reply Codes

Below is a summary of the reply codes that may be returned by an FTP server. These codes have been standardized in RFC 959 by the IETF. As stated earlier in this article, the reply code is a three-digit value. The first digit is used to indicate one of three possible outcomes—success, failure or to indicate an error or incomplete reply:

  • 2yz – Success reply
  • 4yz or 5yz – Failure Reply
  • 1yz or 3yz – Error or Incomplete reply

The second digit defines the kind of error:

  • x0z – Syntax. These replies refer to syntax errors.
  • x1z – Information. Replies to requests for information.
  • x2z – Connections. Replies referring to the control and data connections.
  • x3z – Authentication and accounting. Replies for the login process and accounting procedures.
  • x4z – Not defined.
  • x5z – File system. These replies relay status codes from the server file system.

The third digit of the reply code is used to provide additional detail for each of the categories defined by the second digit.

Read more about this topic:  File Transfer Protocol

Famous quotes containing the words reply and/or codes:

    So, having no reply to give
    To what the old man said,
    I cried, ‘Come, tell me how you live!’
    And thumped him on the head.
    Lewis Carroll [Charles Lutwidge Dodgson] (1832–1898)

    I cannot help thinking that the menace of Hell makes as many devils as the severe penal codes of inhuman humanity make villains.
    George Gordon Noel Byron (1788–1824)