Added some nicer error pages
This commit is contained in:
parent
2ad500d758
commit
3540c077f1
18
src/main/resources/templates/error/403.html
Normal file
18
src/main/resources/templates/error/403.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta th:replace="fragments :: header"/>
|
||||
<title>403 | Permission Denied</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="d-flex h-100 flex-column align-items-center align-content-center mt-3">
|
||||
<i class="bi bi-cone-striped" style="font-size: 3rem;"></i>
|
||||
<h1 class="display-6"><span class="badge bg-secondary rounded-pill align-top">403</span> Forbidden</h1>
|
||||
<p class="lead">
|
||||
Sorry. You don't have access to this resource.
|
||||
</p>
|
||||
<a class="btn btn-link btn-lg mt-3" href="javascript:history.back()">Back</a>
|
||||
<a class="btn btn-link btn-lg mt-3" href="/">Home</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
18
src/main/resources/templates/error/404.html
Normal file
18
src/main/resources/templates/error/404.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta th:replace="fragments :: header"/>
|
||||
<title>404 | Not Found</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="d-flex h-100 flex-column align-items-center align-content-center mt-3">
|
||||
<i class="bi bi-cone-striped" style="font-size: 3rem;"></i>
|
||||
<h1 class="display-6"><span class="badge bg-secondary rounded-pill align-top">404</span> Not Found</h1>
|
||||
<p class="lead">
|
||||
Sorry. Looks like the page you wanted doesn't exist.
|
||||
</p>
|
||||
<a class="btn btn-link btn-lg mt-3" href="javascript:history.back()">Back</a>
|
||||
<a class="btn btn-link btn-lg mt-3" href="/">Home</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user