507 Insufficient Storage

HTTP 507 Insufficient Storage 伺服器錯誤響應狀態碼錶示無法執行某項操作,因為伺服器沒有足夠的可用儲存空間來成功完成請求。

此狀態碼最初在 Web 分散式創作與版本控制 (WebDAV) 中使用,但已傳播到其他用例,以描述伺服器資源耗盡的情況。此錯誤的常見原因可能是伺服器目錄可用空間不足、操作可用 RAM 不足或達到內部限制(例如,特定於應用程式的記憶體限制)。導致此錯誤的請求不一定包含內容,因為如果成功,它可能是一個在伺服器上建立資源的請求。

此問題被認為是臨時的,與 413 Content Too Large 不同,後者表示客戶端請求太大,伺服器無法處理,而與伺服器資源限制無關。

狀態

http
507 Insufficient Storage

示例

507 響應表示儲存問題

以下請求嘗試將檔案上傳到可用儲存空間不足的伺服器。伺服器響應 507,表示其資源已耗盡

http
POST /upload HTTP/1.1
Host: example.com
Content-Type: image/jpeg
Content-Length: 123456

[JPG file data]
http
HTTP/1.1 507 Insufficient Storage
Date: Mon, 22 Jul 2024 10:00:00 GMT
Server: Apache/2.4.41 (Unix)
Content-Type: text/html; charset=UTF-8
Content-Length: 230

<html>
<head>
  <title>507 Insufficient Storage</title>
</head>
<body>
  <h1>Insufficient Storage</h1>
  <p>The server is unable to store the included resource to complete the request.</p>
  <p>Please try again later.</p>
</body>
</html>

規範

規範
RFC 4918
# 第 11.5 節

另見