Skip to content
Wardcase Docs

Conflict with the resource's state

HTTP 409, problem type conflict.

The resource exists but is not in a state that allows this request.

Common causes

  • Running a command, sending a keepalive, exposing a port or taking a snapshot on a sandbox that is not running.
  • Exposing a port that is already exposed.
  • Adding an SSH key that is already registered.
  • Deleting an egress policy that sandboxes still use.
  • Opening the billing portal before a card is set up.
  • Restoring a snapshot that is not ready yet.

What to do

  • Read the resource's current state, for example the sandbox's status, and act on that.

Retrying

Retry after the state changes, for example once a creating sandbox is running.

Example response

The body is an RFC 9457 problem document with the content type application/problem+json.

{
"type": "https://docs.wardcase.com/errors/conflict",
"title": "Conflict with the resource's state",
"status": 409,
"detail": "The sandbox is stopped"
}

All errors