I have no idea what the annotations mean, but if we use exceptions for transmitting error conditions, then there is no point having a true | exception function.
public void deleteStudent(int uid) {
if (STUDENTS.remove(uid) == null) {
throw new WebApplicationException(Response.Status.NOT_FOUND);
}
}