Class RestStatusCodeResult
Provides a way to return a status code and description along with custom pay-load from a REST store
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
public class RestStatusCodeResult : RestResultBase
Constructors
RestStatusCodeResult(Int32)
Initializes a new instance of the RestStatusCodeResult class.
Declaration
public RestStatusCodeResult(int statusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | The status code. |
RestStatusCodeResult(Int32, String)
Initializes a new instance of the RestStatusCodeResult class.
Declaration
public RestStatusCodeResult(int statusCode, string statusDescription)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | The status code. |
System.String | statusDescription | The status description. |
RestStatusCodeResult(Int32, String, IObjectSerializerFactory)
Initializes a new instance of the RestStatusCodeResult class.
Declaration
public RestStatusCodeResult(int statusCode, string statusDescription, IObjectSerializerFactory serializerFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | The status code. |
System.String | statusDescription | The status description. |
IObjectSerializerFactory | serializerFactory | The serializer factory. |
Properties
StatusCode
The HTTP status code returned in the response.
Declaration
public int StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StatusDescription
A description of the HTTP status returned in the response.
Declaration
public string StatusDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ExecuteResult(ControllerContext)
Enables processing of the result of an action method by a custom type that inherits from the System.Web.Mvc.ActionResult class.
Declaration
public override void ExecuteResult(ControllerContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ControllerContext | context | The context in which the result is executed. The context information includes the controller, HTTP content, request context, and route data. |