MDM profile removed on 401 from proxy

Our MDM server is hosted with our enterprise. All the devices pass through the proxy & firewall server to reach it. Due to some misconfiguration, our proxy server responded with 401 to all the requests.

Later we noticed that the MDM profile is missing from some of the devices. On checking with the MDM team, they forwarded us to Apple documents saying this is out of their control and 401 response would remove MDM profile.

Could this be handled in such a way that, MDM server could have some control over this, say only MDM server can send 401 to remove the profile.

Has anyone faced this. Any help this would be appreciated.

The device only receives one HTTP status code in the response, and it can't tell whether that came from your MDM server or your proxy & firewall server. I don't think there's a way to do what you've asked.

MDM profile removed on 401 from proxy
 
 
Q