TELNET 连接上的应答
RJE 服务器的每一个动作, 包括每一条 TELNET 命令的输入, 都会经 TELNET 连接通知用户. 这些 RJE 服务器应答的格式便于真人或程序解释: 先是三位数字码, 然后一个空格, 再是对该消息的文字说明. 数字码按组分配, 以便将来扩展时有望覆盖 RJE 之外的其他协议(例如 FTP). 数字码的设计考虑了便于程序解释. 码的三位含义如下:
第一位指明所表示的应答"类型":
000 这些"应答"纯属信息性质, 由服务器主动发出, 向用户通报服务器系统的某种状态.
100 对特定状态查询的应答. 这些应答既是信息, 也是对状态请求的确认.
200 对先前某条命令/请求的肯定确认. 应答 200 是对无需其他说明的命令的通用"ok". 其他 2xx 应答用于特定的成功动作.
300 到目前为止提供的信息不完整. 没有大问题, 但按已给出的输入无法继续.
400 不成功的应答. 请求的指定是正确的, 但未能正确完成. 进一步的尝试需要用户发出命令.
500 不正确或非法的命令. 从语法上看, 该命令或其参数无效或不完整, 或该命令与先前的命令不一致. 有关命令已被完全忽略.
600-900 保留以备扩展. 第二位指明该应答所涉及的大类主题:
x00-x29 通用应答, 不能归入其他主题.
x30 主要访问. 这些应答涉及"登录"某个服务器服务(RJE, FTP 等)的尝试.
x40 次要访问. 主服务器就其访问次要服务的能力作出说明(RJE 必须登录到远程 FTP 服务).
x50 FTP 结果.
x60 RJE 结果.
x70-x99 保留以备扩展.
最后一位指明具体的消息类型. 由于该码是为自动进程解释而设计的, 并没必要让每一种应答变化都有唯一编号, 只要基本含义各有唯一编号即可. 应答的文字部分可以向真人用户解释该应答的具体原因.
服务器送出的每一行 TELNET 文本(以 "crlf" 结束)都应是一条完整的应答消息. 如果需要把某条应答的文字延续到若干行, 则这些续行含有由三个空格组成的特殊应答码.
与 RJE 有关的已分配应答码如下:
000 General information message (time of day, etc.)
030 Server availability information
050 FTP commentary or user information
060 RJE or Batch system commentary or information
100 System status reply
150 File status reply
151 Directory listing reply
160 RJE system general status reply
161 RJE job status reply
200 Last command received ok
201 An ABORT has terminated activity, as requested
202 ABORT request ignored, no activity in progress
203 The requested Transmission Control has taken effect
204 A REINIT command has been executed, as requested
230 Log-on completed
231 Log-off completed, goodbye.
232 Log-off noted, will complete when transfer done
240 File transfer has started
250 FTP File transfer started ok
251 FTP Restart-marker-reply
Text is: MARK yyyy = mmmm
where yyyy is data stream marker value (yours)
and mmmm is receiver's equivalent mark (mine)
252 FTP transfer completed ok
253 Rename completed
254 Delete completed
260 Job <job-id> accepted for processing
261 Job <job-id> completed, awaiting output transfer
262 Job <job-id> Cancelled as requested
263 Job <job-id> Altered as requested to state <status>
264 Job <job-id>,<job-file-id> transmission in progress
300 Connection greeting message, awaiting input
301 Current command not completed (may be sent after
suitable delay, if not "crlf")
330 Enter password (may be sent with hide-your-input mode)
360 INPUT has never specified an INPATH
400 This service is not implemented
401 This service is not accepting log-on now, goodbye.
430 Log-on time or tries exceeded, goodbye.
431 Log-on unsuccessful, user and/or password invalid
432 User not valid for this service
434 Log-out forced by operator action, please phone site
435 Log-out forced by system problem
436 Service shutting down, goodbye
440 RJE could not log-on to remote FTP for input transfer
441 RJE could not access the specified input file thru FTP
442 RJE could not establish <host-socket> input connection
443 RJE could not log-on to remote FTP for output delivery
444 RJE could not access file space given for output
445 RJE could not establish <host-socket> output connection
450 FTP: The named file does not exist (or access denied)
451 FTP: The named file space not accessable by YOU
452 FTP: Transfer not completed, data connection closed
453 FTP: Transfer not completed, insufficient storage space
460 Job input not completed, ABORT performed
461 Job format not acceptable for processing, Cancelled
462 Job previously accepted has mysteriously been lost
463 Job previously accepted did not complete
464 Job-id referenced by STATUS, CANCEL, ALTER, CHANGE, or
Transmission Control is not known (or access denied)
465 Request Alteration is not permitted for the specified job
466 Un-deliverable, un-claimed output for <job-id> discarded
467 Requested REINIT not accomplished
500 Last command line completely unrecognized
501 Syntax of the last command is incorrect
502 Last command incomplete, parameters missing
503 Last command invalid, illegal parameter combination
504 Last command invalid, action not possible at this time
505 Last command conflicts illegally with previous command(s)
506 Requested action not implemented by this Server
507 Job <job-id> last command line completely unrecognized
508 Job <job-id> syntax of the last command is incorrect
509 Job <job-id> last command incomplete, parameters missing
510 Job <job-id> last command invalid, illegal parameter
combination
511 Job <job-id> last command invalid, action impossible at
this time
512 Job <job-id> last command conflicts illegally with previous
command(s)