Skip to content
Snippets Groups Projects
Commit 4b1c1216 authored by William Enright's avatar William Enright Committed by Larbi Gharib
Browse files

Changed status code on search servlet when no users are found

Change-Id: I24f49e878b5a9fb8db92919c80351e523e007d55
parent d5024022
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,6 @@ public class SearchDirectoryServlet extends HttpServlet {
if (!userProfiles.isEmpty()) {
resp.getOutputStream().write(JsonStream.serialize(userProfiles).getBytes());
resp.setStatus(200);
} else resp.sendError(404, "No users were found!");
} else resp.setStatus(204, "No users were found!");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment