Código de estado del manual de retorno de .NET
return this.StatusCode(StatusCodes.Status418ImATeapot, "Error message");
DreamCoder
return this.StatusCode(StatusCodes.Status418ImATeapot, "Error message");
// 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();
}