2012年9月16日 星期日

HTTP Status Code Definitions

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html



200 OK

Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request the response will contain an entity describing or containing the result of the action.

解釋:
--2012-09-16 22:15:02--  http://mops.twse.com.tw/mops/web/...
Resolving mops.twse.com.tw... 210.69.240.131
Connecting to mops.twse.com.tw|210.69.240.131|:80... connected.
HTTP request sent, awaiting response... 200 O.K
Length: unspecified [text/html]
Saving to: `...'



5xx Server Error

Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents SHOULD display any included entity to the user. These response codes are applicable to any request method.

解釋:之前碰到,衰。還有一種錯誤也很麻煩,response timeout,連 HTTP status code 都不給你。

沒有留言:

張貼留言