生產環境常見的HTTP狀態碼列表(老男孩整理)

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

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

200-OK,服務器成功返回網頁
-StandardresponseforsuccessfulHTTPrequests.

301-MovedPermanently(永久跳轉),請求的網頁已永久跳轉到新位置。
-Thisandallfuturerequestsshouldbedirectedtothegiven.

403-Forbidden(禁止訪問),服務器拒絕請求
-forbiddenrequest(matchesadenyfilter)=>HTTP403
-Therequestwasalegalrequest,buttheserverisrefusingtorespondtoit.

404-NotFound,服務器找不到請求的頁面。
-Therequestedresourcecouldnotbefoundbutmaybeavailableagaininthefuture.

500-InternalServerError(內部服務器錯誤)
-internalerrorinhaproxy=>HTTP500
-Agenericerrormessage,givenwhennomorespecificmessageissuitable.

502-BadGateway(壞的網關),一般是網關服務器請求後端服務時,後端服務沒有按照http協議正確返回結果。
-theserverreturnedaninvalidorincompleteresponse=>HTTP502
-Theserverwasactingasagatewayorproxyandreceivedaninvalidresponsefromtheupstreamserver.

503-ServiceUnavailable(服務當前不可用),可能因爲超載或停機維護。
-noserverwasavailabletohandletherequest=>HTTP503
-Theserveriscurrentlyunavailable(becauseitisoverloadedordownformaintenance).

504-GatewayTimeout(網關超時),一般是網關服務器請求後端服務時,後端服務沒有在特定的時間內完成服務。
-theserverfailedtoreplyintime=>HTTP504
-Theserverwasactingasagatewayorproxyanddidnotreceiveatimelyresponsefromtheupstreamserver.

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