-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhttp-error.html.ejs
More file actions
32 lines (31 loc) · 2.15 KB
/
http-error.html.ejs
File metadata and controls
32 lines (31 loc) · 2.15 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Error <%= (model.statusCode || '500') + ' | ' + (model.title || 'Internal Server Error')%></title>
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Raleway:400,700" rel="stylesheet">
<style>
*{-webkit-box-sizing:border-box;box-sizing:border-box}body{padding:64px 64px;margin:0}#error{position:relative}#error .error{position:relative}.error{line-height:1.4}.error h2{font-family:Raleway,sans-serif;color:#292929;font-size:28px;font-weight:700;text-transform:uppercase;letter-spacing:2.5px;margin-top:0}.error p{font-family:Raleway,sans-serif;font-size:14px;font-weight:400;margin-top:0;margin-bottom:15px;color:#333}.error p.stack{font-family:monospace;font-size:100%;color:#333}.error a{font-family:Raleway,sans-serif;font-size:14px;text-decoration:none;text-transform:uppercase;background:#fff;display:inline-block;padding:15px 30px;border-radius:40px;color:#292929;font-weight:700;-webkit-box-shadow:0 4px 15px -5px rgba(0,0,0,.3);box-shadow:0 4px 15px -5px rgba(0,0,0,.3);-webkit-transition:.2s all;transition:.2s all}.error a:hover{color:#fff;background-color:#3700b3}@media only screen and (max-width:480px){.error{text-align:center}.error{padding-left:15px;padding-right:15px}}
</style>
</head>
<body>
<div id="error">
<div class="error">
<h2><%=(model.statusCode || 500) + '-' + (model.title || 'Internal Server Error')%></h2>
<p><%= (model.message || 'The server encountered an internal error and was unable to complete your request.')%></p>
<% if (process.env.NODE_ENV === 'development' && model.innerMessage) { %>
<p>
<%=(model.innerMessage)%>
</p>
<% } %>
<% if (process.env.NODE_ENV === 'development' && model.stack) { %>
<p class="stack"><%= model.stack %></p>
<% } %>
<a href="<%=html.resolveUrl('~/')%>">home page</a>
</div>
</div>
</body>
</html>