refactor: move files
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 1m13s
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 1m13s
This commit is contained in:
18
Endpoint/Models/ErrorResponseVm.cs
Normal file
18
Endpoint/Models/ErrorResponseVm.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Mirea.Api.Endpoint.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A class for providing information about an error
|
||||
/// </summary>
|
||||
public class ErrorResponseVm
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public required string Error { get; set; }
|
||||
/// <summary>
|
||||
/// In addition to returning the response code in the header, it is also duplicated in this field.
|
||||
/// Represents the HTTP response code.
|
||||
/// </summary>
|
||||
public required int Code { get; set; }
|
||||
}
|
Reference in New Issue
Block a user