add FoxchatError type
This commit is contained in:
parent
f6629fbb33
commit
d34c41a126
7 changed files with 42 additions and 20 deletions
17
Foxchat.Core/Models/ApiError.cs
Normal file
17
Foxchat.Core/Models/ApiError.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
namespace Foxchat.Core.Models;
|
||||
|
||||
public record ApiError(int Status, ErrorCode Code, string Message);
|
||||
|
||||
public enum ErrorCode
|
||||
{
|
||||
INTERNAL_SERVER_ERROR,
|
||||
OBJECT_NOT_FOUND,
|
||||
INVALID_SERVER,
|
||||
INVALID_HEADER,
|
||||
INVALID_DATE,
|
||||
INVALID_SIGNATURE,
|
||||
MISSING_SIGNATURE,
|
||||
GUILD_NOT_FOUND,
|
||||
UNAUTHORIZED,
|
||||
INVALID_REST_EVENT,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue