fix(router): send connection_closed errors as 5xx instead of 2xx (#2093)

This commit is contained in:
Sai Harsha Vardhan
2023-09-06 19:45:33 +05:30
committed by GitHub
parent 5a49802f56
commit 4d58bdbe29
2 changed files with 0 additions and 15 deletions

View File

@ -13,9 +13,6 @@ 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;