# HTTP 507 Insufficient Storage

**Code:** `507` · **Category:** HTTP · **Seen on:** REST API

The server can’t store what’s needed to complete the request — the disk, quota or mailbox is full.

## Meaning

WebDAV servers (Nextcloud, ownCloud, SharePoint) return 507 when the user’s quota or the server disk is full. Some hosts and apps also use 507 when uploads exceed account storage.

## Common causes

- User storage quota reached
- Server disk or temp partition full
- Upload temp directory on a small partition
- Trash/versions consuming the quota

## Quick fix

1. Free space or raise the user’s quota
2. Empty trash and old file versions
3. Check server disk usage (df -h) and the upload temp dir

## Detailed fix by platform

### Linux

1. 

```bash
df -h
sudo du -xh /var/www --max-depth=2 | sort -h | tail
```


### Nextcloud

1. 

```bash
sudo -u www-data php occ user:setting alice files quota "20 GB"
sudo -u www-data php occ trashbin:cleanup --all-users
```


## How to diagnose

1. **Quota** — User quota vs used
2. **Disk** — Free space on data and /tmp partitions
3. **Versions** — Trash/version size

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/http/507-insufficient-storage)
