Restclient onstatus example. uri("https://api.

Restclient onstatus example. You can customize this behavior using onStatus.