Aller au contenu principal

Renumérotation des codes de réponse

Voici la liste des réponses actuelles de FTP-1 et la façon dont elles devraient être renumérotées pour le nouveau schéma. Les changements de 4xx vers 5xx doivent être OBLIGATOIRES à compter du 1er juin ; les changements du deuxième ou du troisième chiffre sont moins importants. (Comme expliqué plus haut, ce ne sera pas catastrophique même si certains hôtes ne respectent pas cette exigence.) La liste contient aussi une nouvelle réponse possible adaptée de la RFC 640. Les réponses inventées dans la RFC 454 sont signalées comme telles ; comme certaines concernent des commandes largement non implémentées comme REIN, elles sont peut-être sans objet.

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)