Edit in place

Can you please review the update action for list and todo_item controllers, the response for update success or failure is the same as you can see, is there a better way to fix that?