Add contact feature
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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."
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user