[feature] log errors thrown by http into mongo database