not_cancelable

HTTP 409

Order not cancelable

Type URL

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

Detail message

Snapback request in ${label} state can no longer be cancelled. Only pending or queued requests can be cancelled.

Example response

{
  "type": "https://developer.hostup.se/errors/not_cancelable",
  "title": "Order not cancelable",
  "status": 409,
  "detail": "Snapback request in ${label} state can no longer be cancelled. Only pending or queued requests can be cancelled.",
  "code": "not_cancelable",
  "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 === "not_cancelable") {
    // Handle: Order not cancelable
    console.error(problem.detail);
  }
}