Class StatusCodeResultAttribute
Forces the response to have a specific http status code
Inheritance
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute
Namespace: Umbraco.Cms.Web.Common.Filters
Assembly: Umbraco.Web.Common.dll
Syntax
public class StatusCodeResultAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterMetadata
Constructors
View SourceStatusCodeResultAttribute(HttpStatusCode)
Declaration
public StatusCodeResultAttribute(HttpStatusCode statusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Net.HttpStatusCode | statusCode |
Methods
View SourceOnActionExecuted(ActionExecutedContext)
Declaration
public override void OnActionExecuted(ActionExecutedContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext | context |