Skip to content

Instantly share code, notes, and snippets.

@johnmmoss
Created April 20, 2015 18:49
Show Gist options
  • Save johnmmoss/bc134c1d59d85079f74b to your computer and use it in GitHub Desktop.
Save johnmmoss/bc134c1d59d85079f74b to your computer and use it in GitHub Desktop.
HttpStatusCodeResult examples
public HttpStatusCodeResult Unavailable()
{
var status = HttpStatusCode.ServiceUnavailable;
var statusCode = new HttpStatusCodeResult(status);
return statusCode;
}
public HttpStatusCodeResult Found()
{
var status = HttpStatusCode.Found;
var statusCode = new HttpStatusCodeResult(status);
return statusCode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment