FTP的Response含义

  这篇文章摘自http://www.altools.net/,版权为别人所有,工作中因需要查阅,所以转载自此.

sky_dot.gifFTP response codes are 3 digits, with the first 2 digits giving specific information on the type of response, and the final digit revealing the exact nature of the code.

CodeSummary
1yz

Positive Preliminary reply

The requested action is being initiated; expect another reply before proceeding with a new command. (The user-process sending another command before the completion reply would be in violation of protocol; but server-FTP processes should queue any commands that arrive while a preceding command is in progress.) This type of reply can be used to indicate that the command was accepted and the user-process may now pay attention to the data connections, for implementations where simultaneous monitoring is difficult. The server-FTP process may send at most, one 1yz reply per command.

2yz

Positive Completion reply

The requested action has been successfully completed. A new request may be initiated.

3yz

Positive Intermediate reply

The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information. The user should send another command specifying this information. This reply is used in command sequence groups.

4yz

Transient Negative Completion reply

The command was not accepted and the requested action did not take place, but the error condition is temporary and the action may be requested again. The user should return to the beginning of the command sequence, if any. It is difficult to assign a meaning to "transient", particularly when two distinct sites (Server- and User-processes) have to agree on the interpretation. Each reply in the 4yz category might have a slightly different time value, but the intent is that the user-process is encouraged to try again. A rule of thumb in determining if a reply fits into the 4yz or the 5yz (Permanent Negative) category is that replies are 4yz if the commands can be repeated without any change in command form or in properties of the User or Server (e.g., the command is spelled the same with the same arguments used; the user does not change his file access or user name; the server does not put up a new implementation.)

5yz

Permanent Negative Completion reply

The command was not accepted and the requested action did not take place. The User-process is discouraged from repeating the exact request (in the same sequence). Even some "permanent" error conditions can be corrected, so the human user may want to direct his User-process to reinitiate the command sequence by direct action at some point in the future (e.g., after the spelling has been changed, or the user has altered his directory status.)

CodeSummary
x0zSyntax - These replies refer to syntax errors, syntactically correct commands that don't fit any functional category, unimplemented or superfluous commands.
x1zInformation - These are replies to requests for information, such as status or help.
x2zConnections - Replies referring to the control and data connections.
x3zAuthentication and accounting - Replies for the login process and accounting procedures.
x4zUnspecified as yet.
x5zFile system - These replies indicate the status of the Server file system vis-a-vis the requested transfer or other file system action.
CodeSummary
110Restart marker reply.
In this case, the text is exact and not left to the particular implementation; it must read:
    MARK yyyy = mmmm
Where yyyy is User-process data stream marker, and mmmm server's equivalent marker (note the spaces between markers and "=").
120Service ready in nnn minutes.
125Data connection already open; transfer starting.
150File status okay; about to open data connection.
200Command okay.
202Command not implemented, superfluous at this site.
211System status, or system help reply.
212Directory status.
213File status.
214Help message.
On how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user.
215NAME system type.
Where NAME is an official system name from the list in the Assigned Numbers document.
220Service ready for new user.
221Service closing control connection.
Logged out if appropriate.
225Data connection open; no transfer in progress.
226Closing data connection.
Requested file action successful (for example, file transfer or file abort).
227Entering Passive Mode (h1,h2,h3,h4,p1,p2).
230User logged in, proceed.
250Requested file action okay, completed.
257"PATHNAME" created.
331User name okay, need password.
332Need account for login.
350Requested file action pending further information.
421Service not available, closing control connection.
This may be a reply to any command if the service knows it must shut down.
425Can't open data connection.
426Connection closed; transfer aborted.
450Requested file action not taken.
File unavailable (e.g., file busy).
451Requested action aborted: local error in processing.
452Requested action not taken.
Insufficient storage space in system.
500Syntax error, command unrecognized.
This may include errors such as command line too long
501Syntax error in parameters or arguments.
502Command not implemented.
503Bad sequence of commands.
504Command not implemented for that parameter.
530Not logged in.
532Need account for storing files.
550Requested action not taken.
File unavailable (e.g., file not found, no access).
551Requested action aborted: page type unknown.
552Requested file action aborted.
Exceeded storage allocation (for current directory or dataset).
553Requested action not taken.
File name not allowed.

* NOTE: FTP is defined in RFC 959. If you need more information on FTP response codes or FTP in general, RFC 959 is authoritative.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值