error management in http client when parsin json