summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/session/errors/op_mode_errors.py
blob: 8007672193ca1148d426e85d009e445db9716a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
}