Added error to the return value of restClient().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>