diff options
author | crupest <crupest@outlook.com> | 2022-04-12 18:30:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-12 18:30:08 +0800 |
commit | bcdb0e737710052018d781b8ffd197bd11644553 (patch) | |
tree | bd7685813d5bc11c0a170ee4b2db234464671556 /BackEnd/Timeline/Models/Http | |
parent | 20c8d376bdfb4ad1d2a52a0619307ff1a5b9f113 (diff) | |
download | timeline-bcdb0e737710052018d781b8ffd197bd11644553.tar.gz timeline-bcdb0e737710052018d781b8ffd197bd11644553.tar.bz2 timeline-bcdb0e737710052018d781b8ffd197bd11644553.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r-- | BackEnd/Timeline/Models/Http/ErrorResponse.cs | 19 |
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; } + } +} |