checking withings API response code