Insufficient Storage
5xx Server Error
Last updated:
WebDAV: the server is unable to store the representation needed to complete the request.
Description
Introduced for WebDAV. Some APIs also use it for quota-exceeded scenarios (e.g. cloud storage services).
When to use
Return 507 when storage quota is exhausted (though 402 or 413 may fit some scenarios better).
Specification
RFC 4918
Examples
HTTP response
HTTP/1.1 507 Insufficient Storage
Content-Type: application/json
{"error":"Insufficient Storage"}Node.js (Express)
res.status(507).json({ error: "Insufficient Storage" });Go (net/http)
w.WriteHeader(http.Status507)
Python (Flask)
return jsonify({"error": "Insufficient Storage"}), 507