Hello Gangurde, Dilip,
Thanks for reaching out to Microsoft Q&A.
You’re seeing a 307 redirect instead of a 301 because HSTS is enabled. With HSTS, browsers automatically redirect HTTP requests to HTTPS, so when you access the web service without HTTPS, the browser manages the redirect, which overrides any custom 301 rules you set.