Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const RETRY_STATUS_CODES: &[u32] = &[
http::HTTP_STATUS_503_SERVICE_UNAVAILABLE,
http::HTTP_STATUS_504_GATEWAY_TIMEOUT,
http::HTTP_STATUS_507_INSUFFICIENT_STORAGE,
http::HTTP_STATUS_524_CLOUDFLARE_TIMEOUT,
];

/// Helper for the API access.
Expand Down
1 change: 1 addition & 0 deletions src/utils/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub const HTTP_STATUS_502_BAD_GATEWAY: u32 = 502;
pub const HTTP_STATUS_503_SERVICE_UNAVAILABLE: u32 = 503;
pub const HTTP_STATUS_504_GATEWAY_TIMEOUT: u32 = 504;
pub const HTTP_STATUS_507_INSUFFICIENT_STORAGE: u32 = 507;
pub const HTTP_STATUS_524_CLOUDFLARE_TIMEOUT: u32 = 524;

lazy_static! {
static ref LINK_TOKEN_RE: Regex = Regex::new(
Expand Down