Is it possible to return a 307 Temporary Redirect from a controller in ASP.NET MVC?
307 Temporary Redirect
I sometimes need to re-POST the values submitt
POST
To return a 307 redirect result from an MVC action, use the following:
public ActionResult Action() { string url = GetRedirectUrl() HttpContext.Response.AddHeader("Location", url); return new HttpStatusCodeResult(307); }