What HTTP 507 means
The server ran out of disk space or the user’s quota is full. It comes from WebDAV, and Nextcloud returns it when an upload exceeds the user’s quota.
Retrying
Rarely. The server can’t handle this request, so retrying it unchanged is unlikely to help.
Example response
HTTP/1.1 507 Insufficient Storage
Date: Wed, 21 Oct 2026 10:30:00 GMT
Content-Type: application/json
How to return 507
res.status(507).json({ error: 'Insufficient Storage' });
from fastapi import HTTPException
raise HTTPException(status_code=507, detail="Insufficient Storage")
http.Error(w, http.StatusText(http.StatusInsufficientStorage), http.StatusInsufficientStorage)
location /private/ {
return 507;
}
Related status codes
- 413 Content Too Large : The request body is larger than the server allows.
- 500 Internal Server Error : The server hit an unexpected error and couldn’t complete the request.
Other 5xx status codes
500 Internal Server Error · 501 Not Implemented · 502 Bad Gateway · 503 Service Unavailable · 504 Gateway Timeout · 505 HTTP Version Not Supported · 508 Loop Detected · 511 Network Authentication Required · 520 Web Server Returned an Unknown Error · 521 Web Server Is Down · 522 Connection Timed Out · 523 Origin Is Unreachable · 524 A Timeout Occurred · 525 SSL Handshake Failed · 526 Invalid SSL Certificate
See the full list of HTTP status codes.
Sources
Spotted a mistake? Email hello@devtoolsmith.com and we’ll fix it.
Frequently asked questions
What does HTTP 507 Insufficient Storage mean?
HTTP 507 Insufficient Storage means the server can’t store what is needed to complete the request (WebDAV). The server ran out of disk space or the user’s quota is full. It comes from WebDAV, and Nextcloud returns it when an upload exceeds the user’s quota.