[Snippet rust]
```rust
fn switch(&self) -> CustomersErrorResponse {
        use CustomersErrorResponse as CER;
        match self {
            err if err.is_db_not_found() => CER::CustomerNotFound,
            Self::CustomerRedacted => CER::CustomerRedacted,
```
Path: hyperswitch/crates/router/src/core/errors/transformers.rs :: switch (function, crate=router)

Negatives:
- hyperswitch/crates/router/src/core/payments.rs :: get_connector_customer_id
- hyperswitch/crates/router/tests/connectors/barclaycard.rs :: should_fail_capture_for_invalid_payment
- hyperswitch/crates/hyperswitch_connectors/src/connectors/bankofamerica.rs :: get_5xx_error_response
- hyperswitch/crates/external_services/src/aws_kms/core.rs :: new
- hyperswitch/crates/router/src/db/user/sample_data.rs :: delete_payment_intents_for_sample_data