Added error handler for new link

If creation of new object can't insert new link to DB, then this case is the Error-500.