mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Handle non-standard Cloudflare temporary errors
This commit is contained in:
parent
76114452e4
commit
dce5af6f57
|
|
@ -16,6 +16,13 @@ export const temporary_http_errors = [
|
|||
502, // Bad Gateway
|
||||
503, // Service Unavailable
|
||||
504, // Gateway Timeout
|
||||
|
||||
// Non-standard Cloudflare status codes
|
||||
521, // Web Server Is Down
|
||||
522, // Connection Timed Out
|
||||
523, // Origin Is Unreachable
|
||||
524, // A Timeout Occurred
|
||||
530, // Unknown (1xxx error)
|
||||
];
|
||||
|
||||
export async function handleError(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user