Display 404 instead of error for bad takeover URLs.
Ad a few hacks for special cases.