moving AuthFailureError to errors package