Add 404 handling for resources that are not found