Skip to main content

Reply Codes for the Proposed NETRJE

The reply codes for this protocol will follow the model proposed for the new FTP specificaton in RFC 640. As a reminder we insert the pertinent information from that RFC:

There are five values for the first digit of the reply code:

1yz Positive Preliminary reply

The requested action is being initiated; expect another reply before proceeding with a new command. (The user-process sending another command before the completion reply would be in violation of protocol; but server-FTP processes should queue any commands that arrive while a preceding command is in progress.) For implementations where simultaneous monitoring is difficult, this type of reply can be used to indicate that the command was accepted and the user-process may now pay attention to the data connections.

2yz Positive Completion reply

The requested action has been successfully completed. A new request may be initiated.

3yz Positive Intermediate reply

The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information. The user should send another command specifying this information. This reply is used in command sequence groups.

4yz Transient Negative Completion reply

The command was not accepted and the requested action did not take place, but the error condition is temporary and the action may be requested again. The user should return to the beginning of the command sequence, if any. It is difficult to assign a meaning to "transient", particularly when two distinct sites (Server and User-processes) have to agree on the interpretation. Each reply in the 4yz category might have a slightly different time value, but the intent is that the user-process is encouraged to try again. A rule of thumb in determining if a reply fits into the 4yz or the 5yz (Permanent Negative) category is that replies are 4yz if the commands can be repeated without any change in command form or in properties of the User or Server (e.g., the command is spelled the same with the same arguments used, the user does not change his file access or user name, the server does not put up a new implementation.)

5yz Permanent Negative Completion reply

The command was not accepted and the requested action did not take place. The User-process is discouraged from repeating the exact request (in the same sequence). Even some "permanent" error conditions can be corrected, so the human user may want to direct his User-process to reinitiate the command sequence by direct action at some point in the future (e.g., after the spelling has been changed, or the user has altered his directory status.)

The following function groupings are encoded in the second digit:

x0z Syntax - These replies refer to syntax errors, syntactically correct commands that don't fit any functional category, and unimplemented or superfluous commands.

x1z Information - These are replies to requests for information, such as status or help.

x2z Connection - Replies referring to the Telnet and data connections.

x3z Authentication and accounting - Replies for the logon process and accountng procedures.

x4z Unspecified as yet.

x5z File system - These replies indicate the status of the Server file system vis-a-vis the requested transfer or other file system action.

The third digit gives a finer gradation of meaning in each of the function categories specified by the second digit. The list of replies below will illustrate this. Note that the text associated with each reply is suggestive, rather than mandatory, and may even change according to the command with which it is associated. The reply codes, on the other hand, should strictly follow the specifications. That is, Server implementations should not invent new codes for situations that are only slightly different from the ones described here, but rather should adapt codes already defined.

Below is a list of replies ordered by reply code. Some new replies have been added for RJE; these are marked by asterisks to aid the reader. Following this list is a list of commands with the replies that are possible for that command. This list is not considered complete or final; as usual comments are welcomed.

110 Restart marker reply,

   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 is Server's
   equivalent marker.  (Note the spaces between the markers and "=".)

120 Service ready in nnn minutes

125 Data connection already open; transfer starting

150 File status okay; about to open data connection

200 Command okay

202 Command not implemented, superfluous at this site

211 System status, or system help reply

212 Directory status

213 File status

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

*215 RJE general status reply

*216 job status reply

*217 RJE user's jobs status reply

220 Service ready for new user

221 Service closing TELNET connecton (logged off if appropriate)

225 Data connection open; no transfer in progress

226 Closing data connection; requested file action successful (for
example, file transfer or file abort.)

227 Entering [passive, active] mode

230 User logged in

250 Requested file action okay, completed

*260 Job <job-id> has completed

*261 Output ready.  Type an empty line when ready

*262 Job <job-id> IS ALLOCATED  pathname

*263 Job <job-id> cancelled as requested

*264 Job <job-id> altered as requested to state status

331 User name okay, need password

332 Need account for login

350 Requested file action held in abeyance, pending further information

354 Start mail input; end with CRLF, CRLF

*360 Job <job-id> successfully submitted

421 Service not available, closing Telnet connecton.  (This may be a
reply to any command if the service knows it must shut down.)

425 Can't open data connection

426 Connection trouble, closed; transfer aborted

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

451 Requested action aborted; local error in processing

452 Requested action not taken:  insufficient storage space in system

500 Syntax error, command unrecognized  (This may include errors such as
command line too long.)

501 Syntax error in parameters or arguments

502 Command not implemented

503 Bad sequence of commands

504 Command not implemented for that parameter

530 Not logged in

532 Need account for storing files

550 Requested action not taken: file unavailable (e.g., file busy)

552 Requested file action aborted:  exceeded storage allocation for
current directory or dataset)

553 Requested action not taken:  file name not allowed

*563 Job <job-id> is not known to the system

*564 Requested alteration is not permitted for the specified job.