Wrap authentication error in an Error