Hello @Ankita-0970 ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know how you can force Azure Front Door to cache failure responses like 404.
I checked with the Azure Front Door Product Group team and they mentioned the below:
We do not support it now. However it is in roadmap (No ETA as of yet).
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.