Implemented 404 errors for the REST API