507 儲存空間不足
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 節 |