Handling 404 error in route service.