Add begin_and_rescue block to put /tasks/:id