Moved SendData into catch block so you can throw a RestException for non existant objects