title: Equivalent to HttpResponse.StatusDescription in .NET Core to set status code description
body: <p>How do you change the status description from a .NET Core application? I am looking for something equivalent to the .NET 4.8 <a href="https://docs.microsoft.com/en-us/dotnet/api/system.web.httpresponse.statusdescription?view=netframework-4.8" rel="nofollow noreferrer">HttpResponse.StatusDescription</a>.</p>
  <p>Instead of</p>
  <p><code>HTTP/1.1 400 Bad Request</code></p>
  <p>I want to change Bad Request to something from my application</p>
  <p><code>HTTP/1.1 400 Custom Error Message</code></p>
  <p>I know there are other ways of sending error text. However, I need to support a legacy application that only reads the error message from the status code text field.</p>
  <p>If relevant, this will be running on IIS using .NET Core 3.1.</p>