volume_attached

HTTP 400

Volume is attached

Type URL

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

Detail message

Volume is currently attached to a VPS. Detach it before deleting.

Example response

{
  "type": "https://developer.hostup.se/errors/volume_attached",
  "title": "Volume is attached",
  "status": 400,
  "detail": "Volume is currently attached to a VPS. Detach it before deleting.",
  "code": "volume_attached",
  "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 === "volume_attached") {
    // Handle: Volume is attached
    console.error(problem.detail);
  }
}