Raises AuthError when API key is wrong

We should separate determisitc and non-determisitc error.