SyntaxFix
Write A Post
Hire A Developer
Questions
This code might work for non-.NET Core MVC controllers:
this.HttpContext.Response.StatusCode = 418; // I'm a teapot return Json(new { status = "mer" }, JsonRequestBehavior.AllowGet);