Now the wrapper returns a go error if the api returned an http error