resource_in_use

HTTP 409

Storage is still in use

Type URL

https://developer.hostup.se/errors/resource_in_use

Possible detail messages

This VPS has ${usedAttachableStorageGb} GB of attached storage. Detach or delete storage until no more than ${targetAttachableStorageGb} GB remains, then schedule the reduction again.
This VPS has ${assignedIpv4Count} assigned public IPv4 addresses. Release addresses until no more than ${targetIpv4Count} remain, then schedule the reduction again.
This VPS has ${snapshotCount} snapshots. Delete snapshots until no more than ${targetSnapshotCount} remain, then schedule the reduction again.

Example response

{
  "type": "https://developer.hostup.se/errors/resource_in_use",
  "title": "Storage is still in use",
  "status": 409,
  "detail": "This VPS has ${usedAttachableStorageGb} GB of attached storage. Detach or delete storage until no more than ${targetAttachableStorageGb} GB remains, then schedule the reduction again.",
  "code": "resource_in_use",
  "instance": "/api/v2/...",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T12:00:00.000Z"
}

Endpoints that may return this error

Handling this error

const response = await fetch(url, options);

if (!response.ok) {
  const problem = await response.json();

  if (problem.code === "resource_in_use") {
    // Handle: Storage is still in use
    console.error(problem.detail);
  }
}