gets a error in json from restApi