Fixed Bug in ApiRequest; AuthError is not set if AuthorizationRequired is not set; may causes notices.