title: Difference between UseStatusCodePagesWithRedirects and UseStatusCodePagesWithReExecute - Status Code Pages in Asp.net core
body: <p>I am using UseStatusCodePages Middleware to show status code pages on my application but it shows plain text on UI without any other information,</p>
  
  <p>I want to show UI with Status Code Information along with some other helpful information like Customer Support Number with more user-friendly page.</p>
  
  <p>I found out we can use two extension methods to do that which is UseStatusCodePagesWithRedirects and UseStatusCodePagesWithReExecute. Only Difference I found out from <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-2.0#configuring-status-code-pages" rel="nofollow noreferrer">Microsoft Docs</a> is, </p>
  
  <p><strong>UseStatusCodePagesWithRedirects</strong> : Send 302 to Client.</p>
  
  <p><strong>UseStatusCodePagesWithReExecute</strong> : Send Original Status Code and Executes handler for redirect URL.</p>
  
  <p>Is that the only difference?</p>