Add initial implementation of API, database, and user management components.
This commit is contained in:
11
MikrocopApi/Exceptions/UnauthorizedException.cs
Normal file
11
MikrocopApi/Exceptions/UnauthorizedException.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace MikrocopApi.Exceptions;
|
||||
|
||||
public sealed class UnauthorizedException : AppException
|
||||
{
|
||||
public UnauthorizedException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
public override int StatusCode => StatusCodes.Status401Unauthorized;
|
||||
public override string Title => "Unauthorized";
|
||||
}
|
||||
Reference in New Issue
Block a user