feat(core): populate UCS status_code in response headers (#8788)

Co-authored-by: Aishwariyaa Anand <aishwariyaa.anand@Aishwariyaa-Anand-C3PGW02T6Y.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com>
This commit is contained in:
Aishwariyaa Anand
2025-08-05 13:29:05 +05:30
committed by GitHub
parent 988c170726
commit 2adf6c8367
19 changed files with 183 additions and 138 deletions

View File

@ -92,6 +92,12 @@ pub mod headers {
pub const X_CLIENT_SECRET: &str = "X-Client-Secret";
pub const X_CUSTOMER_ID: &str = "X-Customer-Id";
pub const X_CONNECTED_MERCHANT_ID: &str = "x-connected-merchant-id";
// Header value for X_CONNECTOR_HTTP_STATUS_CODE differs by version.
// Constant name is kept the same for consistency across versions.
#[cfg(feature = "v1")]
pub const X_CONNECTOR_HTTP_STATUS_CODE: &str = "connector_http_status_code";
#[cfg(feature = "v2")]
pub const X_CONNECTOR_HTTP_STATUS_CODE: &str = "x-connector-http-status-code";
}
pub mod pii {