139140141142143144145146147148149
} else { response.setStatusCode(204); } } else { throw new NotFoundException("Resource " + request.getPath() + " not found"); } } else { // Do we have permission to read the resource