Files
petclinic-demo-andrej3/src/main/resources/templates/error.html
Scaffolder ed7639e7ce
All checks were successful
Build and Publish TechDocs / build-and-publish (push) Successful in 1m4s
initial commit
Change-Id: I83c7674b31ee747d97c4828579f45209910ebbd6
2026-05-13 09:33:02 +00:00

22 lines
776 B
HTML

<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body},'error')}">
<body>
<img src="../static/resources/images/pets.png" th:src="@{/resources/images/pets.png}" />
<!-- Title: Something happened -->
<h2 th:text="#{somethingHappened}">Something happened...</h2>
<!-- Status-specific error message -->
<p th:switch="${status}">
<span th:case="404" th:text="#{error.404}">The requested page was not found.</span>
<span th:case="500" th:text="#{error.500}">An internal server error occurred.</span>
<span th:case="*" th:text="#{error.general}">An unexpected error occurred.</span>
</p>
<!-- Exception message (for developers) -->
<p th:text="${message}">Exception message</p>
</body>
</html>