企業生産環境常見的http傳回狀态碼彙總,如下表格:
HTTP狀态碼
英文解釋
中文解釋
200
-OK,- Standard response for successful HTTP requests.
發出http請求後伺服器成功傳回正确的網頁
301
-Moved Permanently , - This and all future requests should be directed to the given.
請求的網頁已永久跳轉到新位置。(永久跳轉),
302
-Temporary Moved
請求已臨時跳轉到新位置
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- 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.
(壞的網關),一般是網關伺服器請求後端服務時,後端服務沒有按照http協定正确傳回結果。
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.
(網關逾時),一般是網關伺服器請求後端服務時,後端服務沒有在特定的時間内完成服務。
本文轉自chengong1013 51CTO部落格,原文連結:http://blog.51cto.com/purify/1788434,如需轉載請自行聯系原作者