REST. better exception handling when repository does not exist