Split requestAuth,responseError in single files