[2] [DFN[[CODE(HTTP)[[[506]]]]]] は、[[透過内容折衝]]についての[[サーバー]]の設定に誤りがあることを示す[[状態符号]]です。

* 仕様書

[REFS[
- [1] '''[CITE@en[RFC 2295 - Transparent Content Negotiation in HTTP]] ([TIME[2014-08-31 19:36:42 +09:00]] 版) <http://tools.ietf.org/html/rfc2295#section-8.1>'''
- [5] [CITE@en[RFC 2295 - Transparent Content Negotiation in HTTP]] ([TIME[2014-08-31 19:36:42 +09:00]] 版) <http://tools.ietf.org/html/rfc2295#section-10.2>
]REFS]

* 意味

[3] [CODE(HTTP)[[[506]]]] は、[[鯖]]に内部設定エラーがあって、
[[透過内容折衝]]で選択された[[変種資源]]が[[透過内容折衝]]の対象になっていることを示します
[SRC[>>1]]。

* 文脈

[4] [[選択応答]]の[[生成]]の過程で、[[最善の異体]]に [CODE(HTTP)@en[[[TCN:]]]]
[[ヘッダー]]が含まれている時には [CODE(HTTP)@en[[[506]]]]
[[応答]]を返さなければ[['''なりません''']] [SRC[>>5]]。

* 歴史

** 506 Loop Detected

[REFS[
- [507] [CITE@en[draft-ietf-webdav-collection-protocol-04 - WebDAV Advanced Collections Protocol]] ([TIME[2011-12-08 18:24:54 +09:00]] 版) <http://tools.ietf.org/html/draft-ietf-webdav-collection-protocol-04#section-7.1>
]REFS]

[6] 後に [CODE[[[508]]]] となっています。

** 506 Variant Also Negotiates

[FIG(quote)[
[FIGCAPTION[
[508] RFC 2295 (HTTP 透過内容折衝) 8.1 506 Variant Also Negotiates
]FIGCAPTION]

> The 506 status code indicates that the server has an internal
configuration error: the chosen variant resource is configured to
engage in transparent content negotiation itself, and is therefore
not a proper end point in the negotiation process.

[CODE(HTTP)[506]] 状態符号は、
サーバーで内部設定誤りがあったことを示します。
選ばれた[[変種資源]]がそれ自身[[透過内容折衝]]するように設定されていて、
折衝手続きの適切な終端点ではありません。
]FIG]

[7] [[透過内容折衝]]が普及しなかったため、 [CODE[[[506]]]]
もまず使われないようです。他の用途もなさそうです。

;; [[サーバー]]の設定エラーなら [CODE[[[500]]]] で十分そうです。

[8] [[IETF]] の手続き上は現行仕様ではありますが、
実質的に[[廃止]]状態と考えるのが妥当と思われます。