A 302 Found response temporarily sends the client to another location. In ASP.NET, the browser reads the generated URL from the Location header and requests the new page. section 6.4.2
RedirectToRoute() targets a named endpoint and usually returns 302. Results.Redirect() targets an arbitrary URL, including an external destination. section 6.4.2
Choose the redirect behavior deliberately:
- Use 302 when the redirect is temporary and the request method does not need to be preserved. section 6.4.2
- Use 307 when the redirect is temporary but the request method must be preserved. section 6.4.2
- Avoid treating 301 and 308 as casual alternatives: browsers may stop requesting the original URL. section 6.4.2
- For error pages, a redirect creates a second request and loses the original status code; re-execution preserves it. section 15.5
