LearnerStatus status = learner.getStatus(user);
return Response.status(Status.NOT_MODIFIED).entity(status).build();
} catch (IllegalArgumentException e) {
LOGGER.traceExit(e);
return ResourceErrorHandler.createRESTErrorMessage("LearnerResource.resume", Status.BAD_REQUEST, e);
<BUG>} catch (NotFoundException e) {
LOGGER.traceExit(e);
return ResourceErrorHandler.createRESTErrorMessage("LearnerResource.start", Status.NOT_FOUND, e);</BUG>
}
}

LearnerStatus status = learner.getStatus(user);
LOGGER.traceExit(status);
return Response.ok(status).build();
} catch (IllegalStateException e) {
LOGGER.info(RESOURCE_MARKER, "tried to restart the learning while the learner is running.");
LOGGER.traceExit(e);
LearnerStatus status = learner.getStatus(user);
return Response.status(Status.NOT_MODIFIED).entity(status).build();
} catch (IllegalArgumentException e) {
LOGGER.traceExit(e);
return ResourceErrorHandler.createRESTErrorMessage("LearnerResource.resume", Status.BAD_REQUEST, e);
}
}
