Skip to main content

4. Permanent Negative Completion Reply Codes

The negative completion reply codes that are associated with syntax errors in the PORT and PASV commands are appropriate for the LPRT and LPSV commands (500, 501). An additional negative completion reply code is needed to distinguish the case where a host supports the LPRT or LPSV command, but does not support the address family specified. Of the FTP function groupings currently defined for reply codes (syntax, information, connections, authentication and accounting, and file system), "connections" seems the most logical choice; thus, an additional negative command completion reply code, 521 is added, with the following suggested textual message:

      521 Supported address families are (af1, af2, ..., afn)

Where (af1, af2, ..., afn) are the values of the version numbers of the "next generation" or other protocol families supported. IP address noted earlier.