This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
http-error.html.ejs
58 lines (58 loc) · 2.51 KB
/
http-error.html.ejs
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->
<title>Error <%= (locals.error.status || '500') + ' | ' + (locals.error.title || 'Internal Server Error')%></title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<link href='//fonts.googleapis.com/css?family=Roboto:400,700&subset=cyrillic,latin,greek' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css'>
<style>
.error-page {
font-family: 'Roboto', Arial,sans-serif;
background-color: #f3f5f6;
color:#768399;
}
.error-number {
font-family: 'Ubuntu', serif;
font-weight:700;
font-size: 16em;
margin-top:0.5em;
}
.btn-default {
color:#768399;
}
.btn-default:hover {
color:#566379;
}
</style>
</head>
<body class="error-page">
<div class="container">
<div class="col-md-12">
<h1 class="error-number text-center"><%=(locals.error.status || 500)%></h1>
<h1 class="text-center"><%= (locals.error.title || 'Internal Server Error')%></h1>
<p class="text-center"><%= (locals.error.message || 'The server encountered an internal error and was unable to complete your request.')%></p>
<% if ((process.env.NODE_ENV === 'development') && (locals.error.innerMessage)) { %>
<p class="text-center">
<%=(locals.error.innerMessage)%>
</p>
<% } %>
<% if ((process.env.NODE_ENV === 'development') && (locals.error.stack)) { %>
<pre style="font-size:0.8em" class="col-md-push-2 col-md-8">
<%=(locals.error.stack)%>
</pre>
<% } %>
<div class="clearfix"></div>
<div class="text-center">
<div class="btn-group">
<a href="<%=(locals.returnUrl || '/index.html')%>" class="btn btn-default btn-lg text-normal"><i class="glyphicon glyphicon-home"></i> home</a>
<!--<a href="#" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-inbox"></i> contact admin</a>-->
</div>
</div>
</div>
</div>
</body>
</html>