?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
HTTP 406 Not Acceptable
客戶端錯誤響應(yīng)代碼指示與在其中定義Accept-Charset
和Accept-Language
不能提供的可接受值列表匹配的響應(yīng)。
事實上,這個錯誤很少被使用:服務(wù)器不是使用這個對最終用戶來說很模糊的錯誤代碼(而且很難修復(fù))進(jìn)行響應(yīng),而是忽略相關(guān)頭文件并向用戶提供實際頁面。假定即使用戶不會完全開心,它也會更喜歡這個錯誤代碼。
如果服務(wù)器返回這種錯誤狀態(tài),則消息正文應(yīng)包含資源可用表示的列表,允許在其中手動進(jìn)行選擇。
406 Not Acceptable
規(guī)范 | 標(biāo)題 |
---|---|
RFC 7231,第6.5.6節(jié):406不可接受 | 超文本傳輸協(xié)議(HTTP / 1.1):語義和內(nèi)容 |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Accept-Language
Accept-Charset
HTTP 內(nèi)容協(xié)商