mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(router): send connector timeouts and connection closures as 2xx response instead of giving 5xx response (#2047)
This commit is contained in:
committed by
GitHub
parent
c9fe389b2c
commit
31088b6062
@ -13,6 +13,9 @@ pub(crate) const ALPHABETS: [char; 62] = [
|
||||
pub const REQUEST_TIME_OUT: u64 = 30;
|
||||
pub const REQUEST_TIMEOUT_ERROR_CODE: &str = "TIMEOUT";
|
||||
pub const REQUEST_TIMEOUT_ERROR_MESSAGE: &str = "Connector did not respond in specified time";
|
||||
pub const CONNECTION_CLOSED_ERROR_CODE: &str = "CONNECTION_CLOSED";
|
||||
pub const CONNECTION_CLOSED_ERROR_MESSAGE: &str =
|
||||
"Connection closed before a message could complete";
|
||||
|
||||
///Payment intent fulfillment default timeout (in seconds)
|
||||
pub const DEFAULT_FULFILLMENT_TIME: i64 = 15 * 60;
|
||||
|
||||
Reference in New Issue
Block a user