1 2 3 4 5 6 7 8 9
namespace HyperBooru.ApiModels; [AttributeUsage(AttributeTargets.Class)] public class ExceptionStatusCodeAttribute : Attribute { public int StatusCode { get; set; } public ExceptionStatusCodeAttribute(int statusCode) => StatusCode = statusCode; }