Skip to content

Instantly share code, notes, and snippets.

@johnmmoss
Created April 20, 2015 18:54
Show Gist options
  • Save johnmmoss/567cf474718beebba214 to your computer and use it in GitHub Desktop.
Save johnmmoss/567cf474718beebba214 to your computer and use it in GitHub Desktop.
Specialized HttpStatus result classes
public HttpNotFoundResult NotFound()
{
var statusCode = new HttpNotFoundResult();
return statusCode;
}
public HttpUnauthorizedResult Unauthorized()
{
var statusCode = new HttpUnauthorizedResult();
return statusCode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment