refactor: for maintenance mode, return the standard error

This commit is contained in:
2024-12-22 05:51:11 +03:00
parent 7bafbb95c4
commit 7b94f9cc1f
3 changed files with 21 additions and 7 deletions

View File

@ -0,0 +1,8 @@
using System;
namespace Mirea.Api.Endpoint.Common.Exceptions;
public class ServerUnavailableException(string message, bool addRetryAfter) : Exception(message)
{
public bool AddRetryAfter { get; } = addRetryAfter;
}