rest error example