IDEMPOTENCY_IN_PROGRESS

Just a moment — that operation is still in flight.

HTTP status: 409

Why this happens

A prior request with the same Idempotency-Key is still being processed.

How to recover

Wait a moment and retry; the cached response will be returned once the original completes.

Branching on this code

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

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