[Snippet rust]
```rust
fn to_duplicate_response(
```
Path: hyperswitch/crates/router/src/core/errors/utils.rs :: to_duplicate_response (function, crate=router)

Negatives:
- hyperswitch/crates/router/tests/connectors/paybox.rs :: should_refund_manually_captured_payment
- hyperswitch/crates/common_utils/src/id_type/client_secret.rs :: generate_redis_key
- hyperswitch/crates/hyperswitch_connectors/src/connectors/bankofamerica.rs :: build_request
- hyperswitch/crates/router/tests/connectors/aci.rs :: should_partially_refund_succeeded_payment
- hyperswitch/crates/kgraph_utils/src/transformers.rs :: into_dir_value