diff options
author | 2018-02-16 19:21:19 +0000 | |
---|---|---|
committer | 2018-02-16 19:21:19 +0000 | |
commit | 74878acd022deec13176c96c72b72aa23fe0b800 (patch) | |
tree | c9f09c2e20e09c4b0b71e9528b5c706817de9ae1 /pysite/constants.py | |
parent | Fix slight error in database insertion (diff) | |
parent | API_KEY -> BOT_API_KEY (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'pysite/constants.py')
-rw-r--r-- | pysite/constants.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pysite/constants.py b/pysite/constants.py index 0c9c8ecb..59febcc9 100644 --- a/pysite/constants.py +++ b/pysite/constants.py @@ -1,13 +1,19 @@ # coding=utf-8 -from enum import IntEnum +from enum import Enum, IntEnum class ErrorCodes(IntEnum): unknown_route = 0 unauthorized = 1 invalid_api_key = 2 - missing_parameters = 3 + incorrect_parameters = 3 + bad_data_format = 4 + + +class ValidationTypes(Enum): + json = "json" + params = "params" OWNER_ROLE = 267627879762755584 |