5xx Server ErrorRFC 4918 (WebDAV)

507Insufficient Storage

Server cannot store the representation needed to complete the request.

What it means

The server is unable to store the representation needed to successfully complete the request. This condition is considered to be temporary.

When to use it

  • Disk is full
  • Storage quota exceeded
  • File system is at capacity

Code Examples

Express — storage check
javascript
app.post('/upload', async (req, res) => {
  const hasSpace = await checkDiskSpace();
  if (!hasSpace) {
    return res.status(507).json({
      error: 'Insufficient Storage',
      message: 'Server storage is full. Contact support.',
    });
  }
  // handle upload...
});

Quick Facts

Code507
CategoryServer Error
SpecRFC 4918 (WebDAV)
CommonNo
← Back to all status codes