Files
2026-03-30 22:05:57 +08:00

152 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>501 - 方法未实现</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.error-container {
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-width: 500px;
padding: 50px;
text-align: center;
}
.error-code {
font-size: 120px;
font-weight: bold;
color: #f39c12;
line-height: 1;
margin-bottom: 10px;
}
.error-title {
font-size: 28px;
color: #333;
margin-bottom: 15px;
}
.error-message {
color: #666;
font-size: 16px;
line-height: 1.6;
margin-bottom: 30px;
}
.error-animation {
font-size: 60px;
margin-bottom: 20px;
animation: shake 0.5s ease-in-out infinite;
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
25% {
transform: translateX(-5px);
}
75% {
transform: translateX(5px);
}
}
.btn {
display: inline-block;
padding: 12px 30px;
font-size: 16px;
font-weight: 600;
text-decoration: none;
border-radius: 8px;
transition: all 0.3s ease;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
cursor: pointer;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.supported-methods {
background: #f8f9fa;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
text-align: left;
}
.supported-methods h3 {
color: #667eea;
font-size: 18px;
margin-bottom: 10px;
}
.method-badges {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.method-badge {
padding: 8px 15px;
background: #27ae60;
color: white;
border-radius: 4px;
font-weight: bold;
font-size: 14px;
}
.footer {
margin-top: 30px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<div class="error-container">
<div class="error-animation">⚙️</div>
<div class="error-code">501</div>
<div class="error-title">方法未实现</div>
<p class="error-message">
您使用的HTTP请求方法在当前服务器上未实现。<br>
本服务器仅支持 GET 方法。
</p>
<div class="supported-methods">
<h3>✅ 支持的请求方法</h3>
<div class="method-badges">
<span class="method-badge">GET</span>
</div>
</div>
<a href="/" class="btn">返回首页</a>
<div class="footer">
<p>Simple Web Server - HTTP 501 Not Implemented</p>
</div>
</div>
</body>
</html>