CONFIRMATION_REQUIRED
Please type the resource name to confirm.
HTTP status: 422
Why this happens
A destructive action requires you to type the resource name to confirm.
How to recover
Re-issue the request with the resource name in the confirm field.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "CONFIRMATION_REQUIRED") {
// recover here
}
throw e;
}