Write a method to reset request state.