生產環境常見的HTTP狀態碼列表

生產環境常見的HTTP狀態碼列表(老男孩整理) 2011-11-16 18:27:51

標籤:老男孩 List of HTTP status codes 休閒 HTTP狀態碼列表 職場

big.png

原創作品,允許轉載,轉載時請務必以超鏈接形式標明文章 原始出處 、作者信息和本聲明。否則將追究法律責任。http://oldboy.blog.51cto.com/2561410/716294

################################################################
本文內容摘錄於老男孩linux實戰運維培訓中心教案內容
如有轉載,請務必保留本文鏈接及版權信息。
歡迎廣到運維兄弟一起交流linux/unix網站運維技術!
網站運維交流羣:114580181 45039636
老男孩 QQ:31333741 
mail:[email protected]
===============================================================
老男孩linux實訓聯繫方式
諮詢:QQ:357851641 31333741 70271111 11914883 
電話:18911718229 18901398229
網站地址:http://www.etiantian.org  http://oldboy.cc
blog:http://oldboy.blog.51cto.com
################################################################

生產環境常見的HTTP狀態碼列表(List of HTTP status codes)爲:
說明:求精不求多,有舍纔有得 不一樣的思維不一樣的精彩。《老男孩linux實戰培訓》也是這個原則。

200 - OK,服務器成功返回網頁
    - Standard response for successful HTTP requests.

301 - Moved Permanently(永久跳轉),請求的網頁已永久跳轉到新位置。
    - This and all future requests should be directed to the given.

403 - Forbidden(禁止訪問),服務器拒絕請求
    - forbidden request (matches a deny filter) => HTTP 403
    - The request was a legal request, but the server is refusing to respond to it.

404 - Not Found,服務器找不到請求的頁面。
    - The requested resource could not be found but may be available again in the future.

500 - Internal Server Error(內部服務器錯誤)
    - internal error in haproxy => HTTP 500
    - A generic error message, given when no more specific message is suitable.

502 - Bad Gateway(壞的網關),一般是網關服務器請求後端服務時,後端服務沒有按照http協議正確返回結果。
    - the server returned an invalid or incomplete response => HTTP 502
    - The server was acting as a gateway or proxy and received an invalid response from the upstream server.

503 - Service Unavailable(服務當前不可用),可能因爲超載或停機維護。
    - no server was available to handle the request => HTTP 503
    - The server is currently unavailable (because it is overloaded or down for maintenance).

504 - Gateway Timeout(網關超時),一般是網關服務器請求後端服務時,後端服務沒有在特定的時間內完成服務。
    - the server failed to reply in time => HTTP 504
    - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章