-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
40 lines (40 loc) · 1.09 KB
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<noscript>
<meta
http-equiv="refresh"
content="0; url=https://express-rate-limit.mintlify.app/"
/>
</noscript>
<script type="text/javascript">
// default redirection target
let target = 'https://express-rate-limit.mintlify.app/'
// strip the leading and trailing slashes and lowercase
let path = location.pathname.substr(1).toLowerCase();
if (path.endsWith('/')) {
path = path.substring(0, path.length-1)
}
if (path.startsWith('err_erl_') || path.startsWith('wrn_erl_')) {
target += 'reference/error-codes#' + path.repaceAll('_', '-');
}
document.addEventListener("DOMContentLoaded", (event) => {
const link = document.getElementById('link');
if (link) link.href = target;
});
window.location.href = target;
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
id="link"
href="https://express-rate-limit.mintlify.app/"
>
this link
</a>
to the Express Rate Limit page.
</body>
</html>