mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
873 B
31 lines
873 B
// ==========================================================================
|
|
// ErrorDto.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Squidex.Controllers.Api
|
|
{
|
|
public sealed class ErrorDto
|
|
{
|
|
/// <summary>
|
|
/// Error message.
|
|
/// </summary>
|
|
[Required]
|
|
public string Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// Detailed error messages.
|
|
/// </summary>
|
|
public string[] Details { get; set; }
|
|
|
|
/// <summary>
|
|
/// Status code of the http response.
|
|
/// </summary>
|
|
public int? StatusCode { get; set; } = 400;
|
|
}
|
|
}
|
|
|