Physiology and pathology of an immunoendocrine feedback loop