ResponseStatus
Common ResponseStatus class that should be present on all response DTO's
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
[DataContract]
public class ResponseStatus : IMeta
Properties
ErrorCode
Holds the custom ErrorCode enum if provided in ValidationException otherwise will hold the name of the Exception type, e.g. typeof(Exception).Name
A value of non-null means the service encountered an error while processing the request.
View Source
Declaration
[DataMember(Order = 1)]
public string ErrorCode { get; set; }
Message
A human friendly error message
View Source
Declaration
[DataMember(Order = 2)]
public string Message { get; set; }
StackTrace
The Server StackTrace when DebugMode is enabled
View Source
Declaration
[DataMember(Order = 3)]
public string StackTrace { get; set; }
Errors
For multiple detailed validation errors. Can hold a specific error message for each named field.
View Source
Declaration
[DataMember(Order = 4)]
public List<ResponseError> Errors { get; set; }
Meta
For additional custom metadata about the error
View Source
Declaration
[DataMember(Order = 5)]
public Dictionary<string, string> Meta { get; set; }