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 节 |