[6] [DFN[[CODE(HTTP)[[[507]]]]]] ([DFN[[[Insufficient Storage]]]])
は、[[ストレージ]]の容量制限により処理に失敗したことを表す[[状態符号]]です。

* 仕様書

[REFS[
- [7] [CITE@en[RFC 4918 - HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)]] ([TIME[2014-09-21 17:04:59 +09:00]] 版) <http://tools.ietf.org/html/rfc4918#section-9.2>
- [8] [CITE@en[RFC 4918 - HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)]] ([TIME[2014-09-21 17:04:59 +09:00]] 版) <http://tools.ietf.org/html/rfc4918#section-9.3>
- [10] [CITE@en[RFC 4918 - HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)]] ([TIME[2014-09-21 17:04:59 +09:00]] 版) <http://tools.ietf.org/html/rfc4918#section-9.8>
- [1] '''[CITE@en[RFC 4918 - HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)]] ([TIME[2014-09-21 17:04:59 +09:00]] 版) <http://tools.ietf.org/html/rfc4918#section-11.5>'''
-
[14] [CITE@en[[[RFC 4331]] - Quota and Size Properties for Distributed Authoring and Versioning (DAV) Collections]]
([TIME[2017-09-24 12:51:47 +09:00]])
<https://tools.ietf.org/html/rfc4331#section-6>
]REFS]

* 意味

[3] [CODE(HTTP)[[[507]]]] は、[[鯖]]が[[要求]]を正常に完了させるために必要な[[表現]]の[[蓄積]]を行えなかったために操作を実行できなかったことを示す[[状態符号]]です [SRC[>>1]]。

[17] 
[[quota]] が原因のときにも使えます。 [SRC[>>14]]

[4] この[[状態符号]]で表される状況は、一時的なものです [SRC[>>1]]。

* 文脈

[12] [CODE(HTTP)@en[[[PROPPATCH]]]] [[要求]]に対する [CODE(HTTP)[[[207]]]]
[[応答]]内の [CODE(XMLe)@en[[[status]]]] [[要素]]では、
[[特性]]を保存するための[[ストレージ容量]]の不足を表すために使うことができます [SRC[>>7]]。

[9] [CODE(HTTP)@en[[[MKCOL]]]] [[要求]] [SRC[>>8]] や
[CODE(HTTP)@en[[[COPY]]]] [[要求]] [SRC[>>10]]
で指定された[[資源]]を[[ストレージ容量]]の不足により作れなかった時は、
[CODE(HTTP)[[[507]]]] [[応答]]を返すことができます。

* 処理

[5] [[利用者]]の動作によって送信された[[要求]]に対して [CODE(HTTP)[[[507]]]]
が返された時は、別途[[利用者]]の動作があるまで[[要求]]を反復しては[['''なりません''']]
[SRC[>>1]]。

* 関連

[18] 
[[RTSP]] には [CODE[250]] 
があります。

* 歴史

[FIG(quote)[
[FIGCAPTION[
[2] RFC 2518 (WebDAV) 10.6 507 Insufficient Storage
]FIGCAPTION]

> The 507 (Insufficient Storage) status code means the method could not
be performed on the resource because the server is unable to store
the representation needed to successfully complete the request.  This
condition is considered to be temporary.  If the request which
received this status code was the result of a user action, the
request MUST NOT be repeated until it is requested by a separate user action.

[CODE(HTTP)[507]] (蓄積装置不十分) 状態符号は、
サーバーがその要求を成功裏に完了させるのに必要な表現の蓄積が不可能であったために
method をその資源について施せなかったことを意味します。
この条件は一時的と考えられます。この状態符号を受信した要求が利用者の動作の結果であれば、
その要求は別の利用者の動作により要求されるまで繰り返しては'''なりません'''。
]FIG]

[FIG(quote)[
[FIGCAPTION[
[11] [CITE@en[Dropbox - Core API - endpoint reference]]
([TIME[2015-03-06 09:06:46 +09:00]] 版)
<https://www.dropbox.com/developers/core/docs>
]FIGCAPTION]

> 507	User is over Dropbox storage quota.

]FIG]


[FIG(quote)[
[FIGCAPTION[
[13] [CITE@en[Dropbox - Core API - endpoint reference]]
([TIME[2015-07-15 00:11:00 +09:00]] 版)
<https://www.dropbox.com/developers/core/docs>
]FIGCAPTION]

> 507	User is over Dropbox storage quota.

]FIG]



[15] [CITE@en[RFC 4791 - Calendaring Extensions to WebDAV (CalDAV)]]
([TIME[2017-09-24 16:22:36 +09:00]])
<https://tools.ietf.org/html/rfc4791#section-5.3.1.1>

[FIG(quote)[
[FIGCAPTION[
[16] [CITE@en[Quotas management — Kinto 8.1.5 documentation]]
([TIME[2018-02-21 01:03:19 +09:00]])
<https://kinto.readthedocs.io/en/latest/api/1.x/quotas.html>
]FIGCAPTION]

> If the quota is exceeded the server will return a 507 Insufficient Storage HTTP error.
> 

]FIG]
