src/main/java/de/uapcore/lightpit/modules/ErrorModule.java

changeset 45
cc7f082c5ef3
parent 43
9abf0bf44c7b
child 46
1574965c7dc7
equal deleted inserted replaced
44:835dd169642a 45:cc7f082c5ef3
57 setDynamicFragment(req, "error"); 57 setDynamicFragment(req, "error");
58 58
59 return ResponseType.HTML; 59 return ResponseType.HTML;
60 } 60 }
61 61
62 @RequestMapping(requestPath = "404", method = HttpMethod.GET) 62 @RequestMapping(requestPath = "404.html", method = HttpMethod.GET)
63 public ResponseType handle404(HttpServletRequest req) { 63 public ResponseType handle404(HttpServletRequest req) {
64 return handle(req, 404); 64 return handle(req, 404);
65 } 65 }
66 66
67 @RequestMapping(requestPath = "403", method = HttpMethod.GET) 67 @RequestMapping(requestPath = "403.html", method = HttpMethod.GET)
68 public ResponseType handle403(HttpServletRequest req) { 68 public ResponseType handle403(HttpServletRequest req) {
69 return handle(req, 403); 69 return handle(req, 403);
70 } 70 }
71 71
72 @RequestMapping(requestPath = "500", method = HttpMethod.GET) 72 @RequestMapping(requestPath = "500.html", method = HttpMethod.GET)
73 public ResponseType handle500(HttpServletRequest req) { 73 public ResponseType handle500(HttpServletRequest req) {
74 return handle(req, 500); 74 return handle(req, 500);
75 } 75 }
76 } 76 }

mercurial