メインコンテンツまでスキップ

応答コードの再採番

以下は現行の FTP-1 の応答の一覧と、新しい方式のためにそれらをどう再採番すべきかを示したものである。4xx から 5xx への変更は 6 月 1 日以降必須 (REQUIRED) とすべきであり、2 番目または 3 番目の数字の変更はそれほど重要ではない。(前述のとおり、一部のホストがこの要件を満たさなくても大惨事にはならない。) この一覧には、RFC 640 から取り入れた新たな応答案も 1 つ含まれている。RFC 454 で考案された応答はその旨を記してある。そのうちのいくつかは REIN のようにほとんど実装されていないコマンド用なので、無関係かもしれない。

OLD   NEW   TEXT

0x0   0x0   (These messages are not very well defined nor very
            important.  Servers should use their judgment.)
100   110   System status reply.  (Since nobody does STAT as in
            the protocol, this may be a moot point.)
110   111   System busy doing...  (This RFC 454 message could
            easily be considered an example of the one above,
            but since the 454 authors want to distinguish it,
            here it is in another number.)
150   150   "File status reply."  (If this were really that, it
            would be switched to 120, but I believe what is meant
            is the response to a bare STAT in mid-transfer, which
            is more a connection status reply than a file status
            reply.)
151   121   Directory listing reply.
200   200   Last command ok.
201   251   ABOR ok.
202   252   ABOR ignored, no transfer in progress.
new   206   Command ignored, superfluous here.
230   230   Login complete.
231   231   Logout complete.  (RFC 454: Closing connection.)
232   232   Logout command will be processed when transfer is
            complete.
233   233   Logout complete, parameters reinitialized.  (RFC
454               for REIN)
250   250   Transfer started correctly.
251   251   MARK yyyy = mmmm
252   252   Transfer completed ok.
253   223   Rename ok.
254   224   Delete ok.
255   255   SOCK nnnn
256   256   Mail completed ok.
300   300   Connection greeting
301   301   Command incomplete (no crlf)
330   330   Enter password
331   331   Enter account (RFC 454)
350   350   Enter mail.
400   huh?  "This service not implemented."  I don't understand
            this; how does it differ from 506?  If it means no FTP
            at all, who gave the message?  Flush.
401   451   Service not accepting users now, goodbye.
430   430   Foo, you are a password hacker!
431   531   Invalid user or password.
432   532   User invalid for this service.
433   533   Need account to write files.
434   454   Logout by operator.
435   455   Logout by system.
436   456   Service shutting down.
450   520   File not found.
451   521   Access denied.
452   452   Transfer incomplete, connection closed.
453   423   Transfer incomplete, insufficient storage space.
454   454   Can't connect to your socket.
455   425   Random file system error (RFC 454)
456   526   Name duplication, rename failed (RFC 454)
457   557   Bad transfer parameters (TYPE, BYTE, etc) (RFC 454)
500   500   Command gibberish.
501   501   Argument gibberish.
502   502   Argument missing.
503   503   Arguments conflict.
504   504   You can't get there from here.
505   505   Command conflicts with previous command.
506   506   Action not implemented.
507   507   Some other problem.  (RFC 454)
550   520   Bad syntax in pathname.  (RFC454)