fix example to handle returned Response