溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

生產(chǎn)環(huán)境常見的HTTP狀態(tài)碼列表

發(fā)布時間:2020-07-15 23:03:28 來源:網(wǎng)絡(luò) 閱讀:303 作者:鄂倫春人 欄目:系統(tǒng)運維

200 - OK,服務(wù)器成功返回網(wǎng)頁

  • Standard response for successful HTTP requests.

301 - Moved Permanently(永久跳轉(zhuǎn)),請求的網(wǎng)頁已永久跳轉(zhuǎn)到新位置。

  • This and all future requests should be directed to the given.
    304(未修改)自從上次請求后,請求的網(wǎng)頁未修改過。服務(wù)器返回此響應(yīng)時,不會返回網(wǎng)頁內(nèi)容。

如果網(wǎng)頁自請求者上次請求后再也沒有更改過,您應(yīng)將服務(wù)器配置為返回此響應(yīng)(稱為 If-Modified-Since HTTP 標(biāo)頭)。服務(wù)器可以告訴 Googlebot 自從上次抓取后網(wǎng)頁沒有變更,進而節(jié)省帶寬和開銷。

403 - Forbidden(禁止訪問),服務(wù)器拒絕請求,此類問題一般是服務(wù)器或服務(wù)權(quán)限配置不當(dāng)所致。
原因之一:是nginx配置文件里沒有配置默認(rèn)首頁參數(shù),或首頁文件在站點目錄下沒有如下內(nèi)容:
index index.php index.html index.htm;
原因之二:站點目錄下沒有配置文件里指定的首頁文件。
原因之三:站點目錄或內(nèi)容的程序文件沒有nginx用戶訪問權(quán)限。
原因之四:nginx配置文件中設(shè)置了allow,deny等權(quán)限控制,導(dǎo)致客戶端沒有訪問權(quán)限。

  • 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,404 - 請求的網(wǎng)頁不存在

服務(wù)器找不到請求的頁面。可能客戶端服務(wù)器上不存在資源所致。

  • The requested resource could not be found but may be available again in the future.

500 - Internal Server Error(內(nèi)部服務(wù)器錯誤),例如selinux開啟,有沒為其設(shè)置許可。

  • internal error in haproxy => HTTP 500
  • A generic error message, given when no more specific message is suitable.

502 - Bad Gateway(壞的網(wǎng)關(guān)),一般是網(wǎng)關(guān)服務(wù)器請求后端服務(wù)時,后端服務(wù)沒有按照http協(xié)議正確返回結(jié)果。

  • 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(服務(wù)當(dāng)前不可用),可能因為超載或停機維護。503 - 服務(wù)器超時

- 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(網(wǎng)關(guān)超時),一般是網(wǎng)關(guān)服務(wù)器請求后端服務(wù)時,后端服務(wù)沒有在特定的時間內(nèi)完成服務(wù)。

  • 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.
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI