error.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html
  3. xmlns:th="http://www.thymeleaf.org"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://www.thymeleaf.org"
  6. th:lang="${#locale.language}"
  7. lang="en"
  8. >
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  11. <link rel="icon" href="${baseUrl}/favicon.ico" />
  12. <title>Your request cannot be processed</title>
  13. <style>
  14. ::-moz-selection {
  15. background: #b3d4fc;
  16. text-shadow: none;
  17. }
  18. ::selection {
  19. background: #b3d4fc;
  20. text-shadow: none;
  21. }
  22. html {
  23. padding: 30px 10px;
  24. font-size: 20px;
  25. line-height: 1.4;
  26. color: #737373;
  27. background: #3e8acc;
  28. -webkit-text-size-adjust: 100%;
  29. -ms-text-size-adjust: 100%;
  30. }
  31. html,
  32. input {
  33. font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  34. }
  35. body {
  36. max-width: 1000px;
  37. _width: 500px;
  38. padding: 30px 20px 50px;
  39. border: 1px solid #b3b3b3;
  40. border-radius: 4px;
  41. margin: 0 auto;
  42. box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
  43. background: #fcfcfc;
  44. }
  45. h1 {
  46. margin: 0 10px;
  47. font-size: 50px;
  48. text-align: center;
  49. }
  50. h1 span {
  51. color: #bbb;
  52. }
  53. h3 {
  54. margin: 1.5em 0 0.5em;
  55. }
  56. p {
  57. margin: 1em 0;
  58. }
  59. ul {
  60. padding: 0 0 0 40px;
  61. margin: 1em 0;
  62. }
  63. .container {
  64. max-width: 800px;
  65. _width: 380px;
  66. margin: 0 auto;
  67. }
  68. </style>
  69. </head>
  70. <body>
  71. <div class="container">
  72. <h1 th:text="#{error.title}">Your request cannot be processed <span>:(</span></h1>
  73. <p th:text="#{error.subtitle}">Sorry, an error has occurred.</p>
  74. <span th:text="#{error.status}">Status:</span>&nbsp;<span th:text="${error}"></span><br />
  75. <span th:if="${!#strings.isEmpty(message)}">
  76. <span th:text="#{error.message}">Message:</span>&nbsp;<span th:text="${message}"></span><br />
  77. </span>
  78. </div>
  79. </body>
  80. </html>