title: How to send 400 HTTP code with binary content form ASP.NET Core's controller?
body: <p>How to send 400 (or 500) HTTP code with binary content from ASP.NET Core's controller without implementing the IActionResult interface from the ground? Seems like ControllerBase.StatusCode can do the thing, but I can't figure out what the second argument should be.</p>