Better errors for when api fails