title: How to return a specific status code and no contents from Controller?
body: <p>I want the example controller below to return a status code 418 with no contents. Setting the status code is easy enough but then it seems like there is something that needs to be done to signal the end of the request. In MVC prior to ASP.NET Core or in WebForms that might be a call to <code>Response.End()</code> but how does it work in ASP.NET Core where <code>Response.End</code> does not exist?</p>
  
  <pre><code>public class ExampleController : Controller
  {
      [HttpGet][Route("/example/main")]
      public IActionResult Main()
      {
          this.HttpContext.Response.StatusCode = 418; // I'm a teapot
          // How to end the request?
          // I don't actually want to return a view but perhaps the next
          // line is required anyway?
          return View();   
      }
  }
  </code></pre>