19 lines
443 B
C#
19 lines
443 B
C#
using System.Net;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BeauFindlay.Shared.Contracts;
|
|
|
|
public sealed class ErrorResponse
|
|
{
|
|
[JsonProperty("code")]
|
|
public int Code { get; set; }
|
|
|
|
[JsonProperty("message")]
|
|
public string Message { get; set; } = string.Empty;
|
|
|
|
public static ErrorResponse Generic => new ErrorResponse
|
|
{
|
|
Code = (int)HttpStatusCode.BadRequest,
|
|
Message = "Opps... something went wrong."
|
|
};
|
|
} |