Skip to main content

ResponseStatusUtils

Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class ResponseStatusUtils

Methods

CreateResponseStatus(String, String, IEnumerable<ValidationErrorField>)

Creates the error response from the values provided.

If the errorCode is empty it will use the first validation error code, if there is none it will throw an error.

View Source
Declaration
public static ResponseStatus CreateResponseStatus(string errorCode, string errorMessage, IEnumerable<ValidationErrorField> validationErrors = null)
Returns

ServiceStack.ResponseStatus

Parameters
TypeNameDescription
System.StringerrorCodeThe error code.

| | System.String | errorMessage | The error message.

| | System.Collections.Generic.IEnumerable<ServiceStack.Validation.ValidationErrorField> | validationErrors | The validation errors.

|

GetDetailedError(ResponseStatus)

View Source
Declaration
public static string GetDetailedError(this ResponseStatus status)
Returns

System.String

Parameters
TypeName
ServiceStack.ResponseStatusstatus