Better error handling
SDK api response are now typed