aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/Users.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-23 12:08:45 +0300
committerGravatar Vitaly Takmazov2016-11-23 12:08:45 +0300
commit42718787291bed507caf4f7ae13f6c41f9b8d7ff (patch)
tree2ba7bb057a6a740e98c5f4d6dae813af1a6b977f /juick-api/src/main/java/com/juick/api/Users.java
parentaa3c1a06ed46f49b617e2956b6cf9a1b0d367fb0 (diff)
using HttpServletResponse status codes
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/Users.java')
-rw-r--r--juick-api/src/main/java/com/juick/api/Users.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-api/src/main/java/com/juick/api/Users.java b/juick-api/src/main/java/com/juick/api/Users.java
index a98af7a8..04e53346 100644
--- a/juick-api/src/main/java/com/juick/api/Users.java
+++ b/juick-api/src/main/java/com/juick/api/Users.java
@@ -66,7 +66,7 @@ public class Users {
String json = userSerializer.serializeList(users);
Main.replyJSON(request, response, json);
} else {
- response.sendError(404);
+ response.sendError(HttpServletResponse.SC_NOT_FOUND);
}
}
@@ -97,7 +97,7 @@ public class Users {
}
}
}
- response.sendError(404);
+ response.sendError(HttpServletResponse.SC_NOT_FOUND);
}
public void doGetUserReaders(HttpServletRequest request,
@@ -122,6 +122,6 @@ public class Users {
Main.replyJSON(request, response, json);
return;
}
- response.sendError(404);
+ response.sendError(HttpServletResponse.SC_NOT_FOUND);
}
}