diff options
author | Vitaly Takmazov | 2016-11-23 12:08:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-23 12:08:45 +0300 |
commit | 42718787291bed507caf4f7ae13f6c41f9b8d7ff (patch) | |
tree | 2ba7bb057a6a740e98c5f4d6dae813af1a6b977f /juick-api/src/main/java/com/juick/api/Users.java | |
parent | aa3c1a06ed46f49b617e2956b6cf9a1b0d367fb0 (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.java | 6 |
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); } } |