refactor responses for express 4