minor refactor responses error