Add error handler callback to the $resource examples