生产环境常见的HTTP状态码列表
生產(chǎn)環(huán)境常見(jiàn)的HTTP狀態(tài)碼列表(List of HTTP status codes)為:
200 - OK,服務(wù)器成功返回網(wǎng)頁(yè)
- Standard response for successful HTTP requests.
301 - Moved Permanently(永久跳轉(zhuǎn)),請(qǐng)求的網(wǎng)頁(yè)已永久跳轉(zhuǎn)到新位置。
- This and all future requests should be directed to the given.
403 - Forbidden(禁止訪問(wèn)),服務(wù)器拒絕請(qǐng)求
- 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,服務(wù)器找不到請(qǐng)求的頁(yè)面。
- The requested resource could not be found but may be available again in the future.
500 - Internal Server Error(內(nèi)部服務(wù)器錯(cuò)誤)
- 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ù)器請(qǐng)求后端服務(wù)時(shí),后端服務(wù)沒(méi)有按照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)前不可用),可能因?yàn)槌d或停機(jī)維護(hù)。
- 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)超時(shí)),一般是網(wǎng)關(guān)服務(wù)器請(qǐng)求后端服務(wù)時(shí),后端服務(wù)沒(méi)有在特定的時(shí)間內(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.
總結(jié)
以上是生活随笔為你收集整理的生产环境常见的HTTP状态码列表的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Kafka系列2-producer和co
- 下一篇: MYSQL数据库的优化(二)