Handle OAuth errors properly.