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
1.1 KiB
31 lines
1.1 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschränkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Squidex.Infrastructure.Validation;
|
|
|
|
namespace Squidex.Web
|
|
{
|
|
public sealed class ErrorDto
|
|
{
|
|
[LocalizedRequired]
|
|
[Display(Description = "Error message.")]
|
|
public string? Message { get; set; }
|
|
|
|
[Display(Description = "The optional trace id.")]
|
|
public string? TraceId { get; set; }
|
|
|
|
[Display(Description = "Link to the error details.")]
|
|
public string? Type { get; set; }
|
|
|
|
[Display(Description = "Detailed error messages.")]
|
|
public string[]? Details { get; set; }
|
|
|
|
[Display(Description = "Status code of the http response.")]
|
|
public int StatusCode { get; set; } = 400;
|
|
}
|
|
}
|
|
|