Specific effect immunity

Is it possible to make an entity completely immune to a specific status effect, regardless of its source?
Continue to help post