Use twisted.web.resource.NoResource instead of deprecated twisted.web.error.NoResource