summaryrefslogtreecommitdiff
path: root/Attributes.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-04-30 00:37:15 +1000
committerJake Mannens <jake@asger.xyz>2026-05-06 04:26:12 +1000
commit9d90e21684eeaab3ac9f89a1d8013168a1d577d7 (patch)
treec3a03b37b693b1f38dabb58740b148bb770db551 /Attributes.cs
v0.13av0.13a
Diffstat (limited to 'Attributes.cs')
-rw-r--r--Attributes.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Attributes.cs b/Attributes.cs
new file mode 100644
index 0000000..87ec2d6
--- /dev/null
+++ b/Attributes.cs
@@ -0,0 +1,9 @@
+namespace HyperBooru.ApiModels;
+
+[AttributeUsage(AttributeTargets.Class)]
+public class ExceptionStatusCodeAttribute : Attribute {
+ public int StatusCode { get; set; }
+
+ public ExceptionStatusCodeAttribute(int statusCode) =>
+ StatusCode = statusCode;
+}