public ApiError(StatusCode statusCode)
 {
     this.StatusCode = statusCode;
 }
 public ApiError(StatusCode statusCode, ModelStateDictionary modelState, string message, string detail)
     : this(statusCode, modelState, message)
 {
     this.Detail = detail;
 }
 public ApiError(StatusCode statusCode, string message, string detail)
     : this(statusCode, message)
 {
     this.Detail = detail;
 }
 public ApiError(StatusCode statusCode, ModelStateDictionary modelState, string message)
     : this(statusCode, message)
 {
     this.ValidationResult = new ValidationResultModel(modelState, message);
     this.Message          = message;
 }
 public ApiError(StatusCode statusCode, string message)
     : this(statusCode)
 {
     this.Message = message;
 }