Movatterモバイル変換


[0]ホーム

URL:


  1. 給開發者的 Web 技術文件
  2. HTTP
  3. Reference
  4. HTTP 回應狀態碼
  5. 203 Non-Authoritative Information

此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。

View in EnglishAlways switch to English

203 Non-Authoritative Information

HTTP203 Non-Authoritative Information成功回應狀態碼表示請求成功,但轉換代理伺服器修改了原始伺服器200OK)回應的標頭或附加內容。

此狀態碼的目的是允許轉換代理伺服器在對成功回應套用變更時通知用戶端,因為這可能會影響後續對內容的決策。對訊息的轉換可能意味著修改標頭以表示資源來自鏡像或備份,但也可能意味著以推測對用戶端有利的方式修改內容。這些修改可能包含惡意軟體過濾、格式轉碼、隱私過濾,或為用戶端提供關於未來請求的其他提示。

203 回應與已棄用的Warning 標頭的214Transformation Applied 值相似,該值可能適用於任何狀態碼的回應。

狀態

http
203 Non-Authoritative Information

範例

接收過濾後的訊息回應

在此範例中,使用者向example.com 發送一個GET 請求以取得 ID 為123 的內容。

http
GET /comments/123 HTTP/1.1Host: example.com

一個代理伺服器根據已知不安全附件的惡意軟體過濾規則更改了訊息。回應內容有所修改,attachment_url 的值已替換為一個提供現行過濾資訊的連結:

http
HTTP/1.1 203 Non-Authoritative InformationDate: Wed, 26 Jun 2024 12:00:00 GMTServer: Apache/2.4.1 (Unix)Content-Type: application/jsonContent-Length: 123{  "comment": "來看看我的個人簡介!",  "attachment_url": "https://example.com/attachment-unavailable-faq"}

規範

Specification
HTTP Semantics
# status.203

參見

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp