Exception handling, throw 404 instead of 500