namespace Mirea.Api.Dto.Responses; /// /// A class for providing information about an error /// public class ErrorResponse { /// /// The text or translation code of the error. This field may not contain information in specific scenarios. /// For example, it might be empty for HTTP 204 responses where no content is returned or if the validation texts have not been configured. /// public required string Error { get; set; } /// /// In addition to returning the response code in the header, it is also duplicated in this field. /// Represents the HTTP response code. /// public required int Code { get; set; } }