aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/Errors.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Errors.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/Errors.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Errors.java b/juick-www/src/main/java/com/juick/www/Errors.java
index 85ebf1a6..75fdddde 100644
--- a/juick-www/src/main/java/com/juick/www/Errors.java
+++ b/juick-www/src/main/java/com/juick/www/Errors.java
@@ -20,7 +20,7 @@ public class Errors {
public static void doGet404(JdbcTemplate sql, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
- response.setStatus(404);
+ response.setStatus(HttpServletResponse.SC_NOT_FOUND);
response.setContentType("text/html; charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
PebbleTemplate template = Utils.getEngine().getTemplate("views/404.html");