Skip to main content

Appendix A - On FTP Reply Codes

The choice of appropriate reply codes for new or experimental commands is difficult because there have been three possible "official" sets of codes which one may draw on, and it is not clear which of them might be in use at any particular site; these are (1) Old FTP, (2) New FTP, (3) Revised New FTP. In my choice of code assignments, I have for the most part ignored these and used RFC 691, "One More Try on the FTP", by Brian Harvey. My motivation for this is the simple observation that I know of no site which implements "new FTP", and RFC 691 incorporates much of the "new FTP" reply code logic into the framework of "old FTP". The only sharp conflict is treated by allowing 450 to have its "old" meaning, equivalent to 520 - permanent failure. Note that when testing to see whether a site understands a FTP command, a reply of 5xx (specifically, 500) will generally indicate, for all sets of codes, that the command is unrecognized.

By the way, I recommend RFC 691 as required reading for FTP implementors; maybe if enough people get together this mess can be straightened out.