Improved OAuth errors handling