TELNET 接続上の応答
RJE-server の各動作は、各 TELNET コマンドの入力を含めて、TELNET 接続を通じて User に通知される。これらの RJE-server の応答は、人間またはプロセスによる解釈のために整形される。応答は、先頭の 3 桁の数字コード、空白、そしてメッセージのテキストによる説明から成る。数字コードは、将来の拡張で RJE 以外の他のプロトコル (FTP など) も網羅できることを期待して、グループごとに割り当てられている。数字コードは、プロセスによる解釈の容易さを考えて設計されている。コードの 3 桁は次のように解釈される。
1 桁目は、示される応答の「種類」を指定する。
000 これらの「応答」は純粋に情報提供であり、サーバのシステムの何らかの状態を User に知らせるために、サーバが自発的に発する。
100 特定の状態問い合わせに対する応答。これらの応答は、情報であると同時に、状態要求の確認応答でもある。
200 以前のコマンド/要求に対する肯定的な確認応答。応答 200 は、他に説明を要しないコマンドのための汎用の「ok」である。その他の 2xx 応答は、特定の成功した動作のために規定されている。
300 これまでに与えられた情報が不完全である。大きな問題ではないが、指定された入力では活動を進められない。
400 不成功の応答。要求は正しく指定されたが、正しく完了できなかった。さらに試みるには User のコマンドが必要となる。
500 不正または不当なコマンド。コマンドまたはそのパラメータが、構文上無効または不完全であるか、そのコマンドが以前のコマンドと矛盾している。当該コマンドは完全に無視された。
600-900 拡張のために予約。2 桁目は、応答が言及する一般的な主題を指定する。
x00-x29 汎用の応答で、他の主題に割り当てられないもの。
x30 一次アクセス。これらの応答は、サーバサービス (RJE、FTP など) への「ログオン」の試みに関するものである。
x40 二次アクセス。一次サーバが、二次サービスにアクセスする自らの能力について述べるもの (RJE はリモートの FTP サービスにログオンしなければならない)。
x50 FTP の結果。
x60 RJE の結果。
x70-x99 拡張のために予約。
最後の桁は、特定のメッセージの種類を指定する。コードは自動プロセスによる解釈のために設計されているため、応答のあらゆる変種が一意の番号を持つ必要はなく、基本的な意味が一意の番号を持てばよい。応答のテキストは、人間の User に対して、その応答の具体的な理由を説明できる。
サーバからの各 TELNET 行 ("crlf" で終わる) は、完結した応答メッセージであることを意図している。応答のテキストを後続の行へ続ける必要がある場合、それらの継続応答は、空白 3 個という特別な応答コードを持つ。
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)