Make OAuth error reporting more consistent