aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-12 18:30:08 +0800
committercrupest <crupest@outlook.com>2022-04-12 18:30:08 +0800
commitbcdb0e737710052018d781b8ffd197bd11644553 (patch)
treebd7685813d5bc11c0a170ee4b2db234464671556 /BackEnd/Timeline/Models
parent20c8d376bdfb4ad1d2a52a0619307ff1a5b9f113 (diff)
downloadtimeline-bcdb0e737710052018d781b8ffd197bd11644553.tar.gz
timeline-bcdb0e737710052018d781b8ffd197bd11644553.tar.bz2
timeline-bcdb0e737710052018d781b8ffd197bd11644553.zip
...
Diffstat (limited to 'BackEnd/Timeline/Models')
-rw-r--r--BackEnd/Timeline/Models/Http/ErrorResponse.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Http/ErrorResponse.cs b/BackEnd/Timeline/Models/Http/ErrorResponse.cs
new file mode 100644
index 00000000..119e3977
--- /dev/null
+++ b/BackEnd/Timeline/Models/Http/ErrorResponse.cs
@@ -0,0 +1,19 @@
+namespace Timeline.Models.Http
+{
+ public class ErrorResponse
+ {
+ public const string InvalidRequest = "INVALID_REQUEST";
+ public const string EntityExist = "ENTITY_EXIST";
+ public const string InvalidOperation = "INVALID_OPERATION";
+
+ public ErrorResponse(string error, string message)
+ {
+ Error = error;
+ Message = message;
+ }
+
+ public string Error { get; set; }
+
+ public string Message { get; set; }
+ }
+}