Minor refactor of setting request.response