import java.util.Optional;
import java.util.concurrent.ExecutionException;
import javax.ws.rs.Path;
-import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;
import org.eclipse.jdt.annotation.Nullable;
}
if (resultData != null && resultData.isEmpty()) {
- throw new WebApplicationException(Response.Status.NO_CONTENT);
+ return Response.status(Response.Status.NO_CONTENT).build();
}
return Response.status(200).entity(new NormalizedNodeContext(new InstanceIdentifierContext<>(yangIIdContext,