REST Error handling (sort of)