Class CustomErrorResponse<TResponseStatus>
Used to return BaseResponse instance as Http response with custom status code and custom ResponseStatus instance.
Implements
ServiceStack.ServiceInterface.ServiceModel.IHasResponseStatus
IHttpError
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Nui.ServiceModel.DataContract
Assembly: Terrasoft.Nui.ServiceModel.dll
Syntax
[DataContract]
public class CustomErrorResponse<TResponseStatus> : BaseResponse, ServiceStack.ServiceInterface.ServiceModel.IHasResponseStatus, IHttpError
Type Parameters
Name | Description |
---|---|
TResponseStatus | The type of the response status. |
Properties
ContentType
Declaration
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ErrorCode
Declaration
public string ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Headers
Declaration
public Dictionary<string, string> Headers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
Message
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Options
Declaration
public IDictionary<string, string> Options { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
RequestContext
Declaration
public IRequestContext RequestContext { get; set; }
Property Value
Type | Description |
---|---|
IRequestContext |
Response
Declaration
public object Response { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ResponseFilter
Declaration
public IContentTypeWriter ResponseFilter { get; set; }
Property Value
Type | Description |
---|---|
IContentTypeWriter |
ResponseStatus
Gets or sets the response status.
Declaration
[DataMember(Name = "responseStatus")]
public TResponseStatus ResponseStatus { get; set; }
Property Value
Type | Description |
---|---|
TResponseStatus |
Status
Declaration
public int Status { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StatusCode
Declaration
public HttpStatusCode StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Net.HttpStatusCode |
StatusDescription
Declaration
public string StatusDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
ServiceStack.ServiceInterface.ServiceModel.IHasResponseStatus
IHttpError