Skip to content

Commit 0795793

Browse files
authored
Merge pull request #181 from Sana9058/main
Add 429 error page for too many requests
2 parents 13bacb1 + db67e93 commit 0795793

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

src/main/resources/html/429.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>429 – Too Many Requests</title>
7+
8+
<style>
9+
body {
10+
margin: 0;
11+
padding: 0;
12+
font-family: Arial, Helvetica, sans-serif;
13+
background-color: #f8f9fa;
14+
display: flex;
15+
justify-content: center;
16+
align-items: center;
17+
height: 100vh;
18+
color: #333;
19+
}
20+
21+
.error-container {
22+
background: #ffffff;
23+
padding: 40px;
24+
border-radius: 8px;
25+
max-width: 420px;
26+
width: 90%;
27+
text-align: center;
28+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
29+
}
30+
31+
.error-code {
32+
font-size: 64px;
33+
font-weight: bold;
34+
color: #dc3545;
35+
margin-bottom: 10px;
36+
}
37+
38+
.error-title {
39+
font-size: 22px;
40+
margin-bottom: 12px;
41+
}
42+
43+
.error-message {
44+
font-size: 15px;
45+
line-height: 1.5;
46+
color: #555;
47+
}
48+
</style>
49+
</head>
50+
51+
<body>
52+
<div class="error-container">
53+
<div class="error-code">429</div>
54+
<div class="error-title">Too Many Requests</div>
55+
<div class="error-message">You have sent too many requests in a short period of time.<br> Please wait a moment and try again later.
56+
</div>
57+
</div>
58+
</body>
59+
</html>

0 commit comments

Comments
 (0)