[lib][xs]: better error messages from node api requests.