implement send_money and refactored get/post error handling