You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$explanation = 'The syntax of the URL submitted by your browser could not be understood. Please verify the address and try again.';
53
-
// edit as needed for each `$http_status`
54
-
$redirect_to = '';
55
-
break;
56
-
57
-
# '401 - Unauthorized'
58
-
case401:
59
-
$error_code = '401 - Unauthorized';
60
-
$explanation = 'This section requires a password or is otherwise protected. If you feel you have reached this page in error, please return to the login page and try again, or contact the webmaster if you continue to have problems.';
61
-
$redirect_to = '';
62
-
break;
63
-
64
-
# '403 - Forbidden'
65
-
# might be handled by the server instead of here
66
-
case403:
67
-
$error_code = '403 - Forbidden';
68
-
$explanation = 'This section requires a password or is otherwise protected. If you feel you have reached this page in error, please return to the login page and try again, or contact the webmaster if you continue to have problems.';
69
-
$redirect_to = '';
70
-
break;
71
-
72
-
# '404 - Not Found'
73
-
case404:
74
-
$error_code = '404 - Not Found';
75
-
$explanation = 'The requested resource: <span>' . $page_redirected_from . '</span>, could not be found on this server. Please verify the address and try again.';
76
-
if(defined('_DEBUG') && _DEBUG === true) {
77
-
$redirect_to = 'https://google.com';
78
-
} else {
79
-
$redirect_to = '';
80
-
}
81
-
break;
82
-
83
-
# '405 - Method Not Allowed'
84
-
case405:
85
-
$error_code = '405 - Method Not Allowed';
86
-
$explanation = 'The request method is known by the server but has been disabled and cannot be used.';
0 commit comments