CONFLICT

That conflicts with your account's current state.

HTTP status: 409

Why this happens

The action conflicts with the resource's current state (e.g. starting an already-running VM).

How to recover

Refetch the resource to see the current state, then retry the appropriate action.

Branching on this code

TypeScript
import { ApiError } from "@firecase/sdk";

try {
  await firecase.someCall();
} catch (e) {
  if (e instanceof ApiError && e.code === "CONFLICT") {
    // recover here
  }
  throw e;
}