add return message to post and put methods