summaryrefslogtreecommitdiff
path: root/microservices/01-oauth2-server/src/main/resources/templates/error.html
blob: f97dc77d659c71ff5e9beecd381ddeb176f7d61e (plain)
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
<!DOCTYPE html>
<html xmlns:th="http://thymeleaf.org" xmlns:sec="http://thymeleaf.org/extras/spring-security">

<head>
    <title>An Error Occurred</title>
</head>

<body>
    <h1>Something went wrong!</h1>
    <p>Status: <span th:text="${status}">500</span></p>
    <p>Error: <span th:text="${error}">Internal Server Error</span></p>
    <p>Message: <span th:text="${message}">Unexpected error</span></p>
    <p>Path: <span th:text="${path}">/</span></p>

    <a th:href="@{/}">Back to Home</a>

    <div sec:authorize="isAuthenticated()" style="padding-top: 10px;">
        <form th:action="@{/logout}" method="post">
            <button type="submit">
                Logout
            </button>
        </form>
    </div>
</body>

</html>