summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/session/errors
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/api/graphql/session/errors')
-rw-r--r--src/services/api/graphql/session/errors/op_mode_errors.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/services/api/graphql/session/errors/op_mode_errors.py b/src/services/api/graphql/session/errors/op_mode_errors.py
new file mode 100644
index 0000000..8007672
--- /dev/null
+++ b/src/services/api/graphql/session/errors/op_mode_errors.py
@@ -0,0 +1,19 @@
+op_mode_err_msg = {
+ "UnconfiguredSubsystem": "subsystem is not configured or not running",
+ "UnconfiguredObject": "object does not exist in the system configuration",
+ "DataUnavailable": "data currently unavailable",
+ "PermissionDenied": "client does not have permission",
+ "InsufficientResources": "insufficient system resources",
+ "IncorrectValue": "argument value is incorrect",
+ "UnsupportedOperation": "operation is not supported (yet)",
+}
+
+op_mode_err_code = {
+ "UnconfiguredSubsystem": 2000,
+ "UnconfiguredObject": 2003,
+ "DataUnavailable": 2001,
+ "InsufficientResources": 2002,
+ "PermissionDenied": 1003,
+ "IncorrectValue": 1002,
+ "UnsupportedOperation": 1004,
+}