建站學院文檔 當瀏覽器向web服務器請求服務的時候可能會產生錯誤,下面是所有這些錯誤所返回的HTTP狀態消息列表
1xx: 信息
消息: | 描述: |
---|---|
100 Continue | Only a part of the request has been received by the server, but as long as it has not been rejected, the client should continue with the request 服務器只接受到部分請求,但并沒有拒絕,客戶應該繼續請求 |
101 Switching Protocols | The server switches protocol 服務器交換機議定書 |
2xx: 成功
消息: | 描述: |
---|---|
200 OK | The request is OK 請求成功 |
201 Created | The request is complete, and a new resource is created 請求完成,新資源被建立 |
202 Accepted | The request is accepted for processing, but the processing is not complete 進程接受請求,但整個進程尚未完畢 |
203 Non-authoritative Information | |
204 No Content | |
205 Reset Content | |
206 Partial Content |
3xx: 重定向
消息: | 描述: |
---|---|
300 Multiple Choices | A link list. The user can select a link and go to that location. Maximum five addresses 連接列表。用戶可以通過選擇一個連接到達指定的連接位置。最大允許輸入5個地址。 |
301 Moved Permanently | The requested page has moved to a new url 請求頁切換到一個新的URL地址 |
302 Found | The requested page has moved temporarily to a new url 請求頁臨時切換到一個新的URL地址 |
303 See Other | The requested page can be found under a different url 請求頁可以在另一個URL地址中找到 |
304 Not Modified | |
305 Use Proxy | |
306 Unused | This code was used in a previous version. It is no longer used, but the code is reserved 該代碼僅在先前版本中支持。當前版本已不再支持該代碼,但是代碼部分仍將保留 |
307 Temporary Redirect | The requested page has moved temporarily to a new url 請求頁臨時切換到一個新的URL地址 |
4xx: 客戶端錯誤
消息: | 描述: |
---|---|
400 Bad Request | The server did not understand the request 服務器不能讀懂請求 |
401 Unauthorized | The requested page needs a username and a password 請求頁面需要輸入用戶名和密碼 |
402 Payment Required | You can not use this code yet 不允許在使用這段代碼 |
403 Forbidden | Access is forbidden to the requested page 禁止訪問請求頁面 |
404 Not Found | The server can not find the requested page 服務器不能找到請求頁面 |
405 Method Not Allowed | The method specified in the request is not allowed 不允許該請求 |
406 Not Acceptable | The server can only generate a response that is not accepted by the client 客戶端不能接受來自于服務器的回應 |
407 Proxy Authentication Required | You must authenticate with a proxy server before this request can be served 不許在該請求被處理之前確定是否使用了代理服務器 |
408 Request Timeout | The request took longer than the server was prepared to wait 請求超時 |
409 Conflict | The request could not be completed because of a conflict 請求發生沖突 |
410 Gone | The requested page is no longer available 請求頁已失效 |
411 Length Required | The "Content-Length" is not defined. The server will not accept the request without it 用于"Content-Length"未定義導致服務器不能接受該請求 |
412 Precondition Failed | The precondition given in the request evaluated to false by the server 請求中的預處理過程失敗 |
413 Request Entity Too Large | The server will not accept the request, because the request entity is too large 由于請求實體過大導致服務器不接受該請求 |
414 Request-url Too Long | The server will not accept the request, because the url is too long. Occurs when you convert a "post" request to a "get" request with a long query information 服務器不接受該請求,因為URL過長。當你通過一條較長的查詢信息將“post”請求轉換為“get”請求時,將會發生該錯誤 |
415 Unsupported Media Type | The server will not accept the request, because the media type is not supported 服務器不接受該請求,主要是因為使用的媒體類型不支持 |
416 | |
417 Expectation Failed |
5xx: 服務器端錯誤
消息: | 描述: |
---|---|
500 Internal Server Error | The request was not completed. The server met an unexpected condition 請求未能完成。服務器遭遇意外情況 |
501 Not Implemented | The request was not completed. The server did not support the functionality required 請求未能完成。服務器不支持該指定的功能 |
502 Bad Gateway | The request was not completed. The server received an invalid response from the upstream server 請求未能完成。服務器從上游服務器中提取了無效回應 |
503 Service Unavailable | The request was not completed. The server is temporarily overloading or down 請求未能完成。服務器承載量超負荷 |
504 Gateway Timeout | The gateway has timed out 網關超時 |
505 HTTP Version Not Supported | The server does not support the "http protocol" version 服務器不支持該“http protocal[http協議]”版本 |