return proper response for update method