507 Insufficient Storage means: A WebDAV code: the server cannot store the representation needed to complete the request — typically out of disk space or over quota. It is a server-side storage failure, distinct from 413 where the client's payload is simply too big. Server-error 5xx codes mean the server failed while trying to fulfill a valid request. The fault lies with the service or its upstreams, not the caller. Some members are transient and retryable with backoff; others indicate bugs or configuration errors that only the operator can fix. In practice you will meet 507 when the server's disk or volume is full; a per-user or per-collection storage quota is exhausted; a webdav copy/move needs temporary space that is unavailable. On the client side, retry later (space may be freed) or reduce the payload; if it is your quota, delete old resources or upgrade the plan. On the server side, monitor disk usage and quotas with alerts well before exhaustion; return 507 with quota details so clients can act, and clean up temp files from failed operations.
When 507 happens
- The server's disk or volume is full
- A per-user or per-collection storage quota is exhausted
- A WebDAV COPY/MOVE needs temporary space that is unavailable
How to fix it
On the client
Retry later (space may be freed) or reduce the payload; if it is your quota, delete old resources or upgrade the plan.
On the server
Monitor disk usage and quotas with alerts well before exhaustion; return 507 with quota details so clients can act, and clean up temp files from failed operations.
Should you retry?
Operator-side fault; retry idempotent calls with backoff, escalate if persistent.
Debugging steps
When 507 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Determine whether the error came from the edge or the origin: a proxy-generated error page looks different from your app's. Then trace upstream health, timeouts and recent deployments. For this code specifically, check whether the most common trigger applies to your situation: the server's disk or volume is full. Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.
Notes & gotchas
507 is the server's storage problem, not the client's payload size: monitor disk and quotas with alerts well before exhaustion, and clean up temp files left by failed COPY/MOVE operations.
Examples
HTTP/1.1 507 Insufficient Storage
Content-Type: application/json
Content-Length: 89
{
"error": "insufficient_storage",
"message": "The server's disk or volume is full"
} curl -i https://api.example.com/v1/resource # observe the 507 response and its headers const res = await fetch("https://api.example.com/v1/resource");
if (res.status === 507) {
// server-side failure: retry idempotent calls with backoff + jitter,
// surface a friendly error after the retry budget is exhausted
throw new TransientError(await res.text());
} import requests
res = requests.get("https://api.example.com/v1/resource", timeout=10)
if res.status_code == 507:
# server fault: back off and retry idempotent calls;
# log res.headers.get("X-Request-Id") for the operator
res.raise_for_status() Frequently asked questions
507 vs 413: whose fault is it?
413: your payload exceeds a configured limit (client can shrink it). 507: the server lacks storage to fulfill an otherwise acceptable request (server/operator problem).
Is 507 used outside WebDAV?
Rarely; general APIs usually surface storage exhaustion as 500 or 503. 507 is the precise WebDAV signal.
Are 5xx errors safe to retry?
Idempotent requests (GET, PUT, DELETE) generally yes, with exponential backoff and jitter. Non-idempotent POSTs need care: a 504 may mean the work completed upstream. Check state or use idempotency keys before retrying.
Who should fix a 5xx — the caller or the provider?
The provider: 5xx asserts a server-side fault. Callers can only retry politely (backoff, idempotency) and report correlation ids; persistent 5xx need operator action on logs, upstreams or configuration.
Try the JSON Validator
Check JSON syntax and locate errors by line and column.