change the error code while auth error