ASP.NET Core minimal API – Modifying the response body results in an empty response I have an ASP.NET Core minimal API where the endpoints all return strings.