Skip to content

Commit 50a362f

Browse files
committed
edit
1 parent 9b0bae4 commit 50a362f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

custom-redirect.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,6 @@ export async function c_redirect(request, response, thrownError = null, isMainte
9696
// it's the default message so no need to change anything
9797
}
9898

99-
//console.log("thrownError:", thrownError);
100-
//console.log("thrownError.code:", thrownError.code);
101-
//console.log("response.status:", response.status);
102-
103-
// Handle zero trust errors
104-
if(thrownError && (thrownError == 1033 || thrownError.code == 1033)) {
105-
getErrorDetailsFromCfCode(504, env);
106-
return makeResponse(REDIRECT.generateErrorPage());
107-
}
108-
if(thrownError && (thrownError == 1101 || thrownError.code == 1101)) {
109-
getErrorDetailsFromCfCode(502, env);
110-
return makeResponse(REDIRECT.generateErrorPage());
111-
}
112-
11399
// Handle server errors (5xx)
114100
if(response && response.status >= 500) {
115101
getErrorDetailsFromCfCode(response.status, env);

0 commit comments

Comments
 (0)