added api errors