diff options
Diffstat (limited to 'Attributes.cs')
| -rw-r--r-- | Attributes.cs | 9 |
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; +} |
