Fixes #7375 - Smart proxy return 400 when DNS entry not found

If DNS entry is not found, return 404