generated allow 404 and contenttype needs to be set after custom selector is called