How to set up custom response HTTP header from a controller in Magento 2
To set up custom response HTTP header from a controller in Magento 2, use the following code:

For instance:

To set up custom response HTTP header from a controller in Magento 2, use the following code:
For instance: