Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

.net return manual status code

// 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();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #manual #status #code
ADD COMMENT
Topic
Name
9+6 =