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
If anyone wants to do this with a IHttpActionResult may be in a Web API project, Below might be helpful.
// GET: api/Default/
public IHttpActionResult Get()
{
//return Ok();//200
//return StatusCode(HttpStatusCode.Accepted);//202
//return BadRequest();//400
//return InternalServerError();//500
//return Unauthorized();//401
return Ok();
}