Revert the removal of resource name from 404 exception