Using useReducer() for the Http State