status === HoldStatus::Cancelled ? 'hold_cancelled' : 'hold_expired'; return new self( $reason, 409, "Hold {$hold->id} is no longer active and cannot be confirmed.", ); } public static function idempotencyKeyReuse(string $key, int $slotId): self { return new self( 'idempotency_key_reuse', 422, "Idempotency-Key {$key} was already used for a different slot than {$slotId}.", ); } }