ocpp_kit/standard/reason_codes.rs
1// @generated by `cargo xtask appendix` from OCPP 2.1 Part 2 — Appendices v2.1 (2025-12-03).
2//
3// Only the interoperability surface is reproduced: names, data types and criticality. The
4// appendix's prose descriptions are not copied, and the appendix itself is not redistributed.
5// DO NOT EDIT — re-run the generator instead.
6
7//! The standardized `StatusInfo.reasonCode` values.
8//!
9//! Appendix chapter 5. `statusInfo` is optional and every message carries a status of
10//! its own, so a reason code adds insight rather than meaning — but using the
11//! standardized spelling is what lets the other side act on it automatically.
12
13ocpp_enum! {
14 /// A standardized reason code.
15 ReasonCode {
16 /// `BatteryDamaged`.
17 BatteryDamaged = "BatteryDamaged",
18 /// `BatterySoC`.
19 BatterySoC = "BatterySoC",
20 /// `BatterySoHLow`.
21 BatterySoHLow = "BatterySoHLow",
22 /// `BatteryType`.
23 BatteryType = "BatteryType",
24 /// `BatteryUnknown`.
25 BatteryUnknown = "BatteryUnknown",
26 /// `CSNotAccepted`.
27 CSNotAccepted = "CSNotAccepted",
28 /// `DuplicateProfile`.
29 DuplicateProfile = "DuplicateProfile",
30 /// `DuplicateRequestId`.
31 DuplicateRequestId = "DuplicateRequestId",
32 /// `FixedCable`.
33 FixedCable = "FixedCable",
34 /// `FwUpdateInProgress`.
35 FwUpdateInProgress = "FwUpdateInProgress",
36 /// `InternalError`.
37 InternalError = "InternalError",
38 /// `InvalidCSR`.
39 InvalidCSR = "InvalidCSR",
40 /// `InvalidCertificate`.
41 InvalidCertificate = "InvalidCertificate",
42 /// `InvalidConfSlot`.
43 InvalidConfSlot = "InvalidConfSlot",
44 /// `InvalidIdToken`.
45 InvalidIdToken = "InvalidIdToken",
46 /// `InvalidMessageSeq`.
47 InvalidMessageSeq = "InvalidMessageSeq",
48 /// `InvalidNetworkConf`.
49 InvalidNetworkConf = "InvalidNetworkConf",
50 /// `InvalidOperationMode`.
51 InvalidOperationMode = "InvalidOperationMode",
52 /// `InvalidProfile`.
53 InvalidProfile = "InvalidProfile",
54 /// `InvalidProfileId`.
55 InvalidProfileId = "InvalidProfileId",
56 /// `InvalidSchedule`.
57 InvalidSchedule = "InvalidSchedule",
58 /// `InvalidStackLevel`.
59 InvalidStackLevel = "InvalidStackLevel",
60 /// `InvalidURL`.
61 InvalidURL = "InvalidURL",
62 /// `InvalidValue`.
63 InvalidValue = "InvalidValue",
64 /// `MissingDevModelInfo`.
65 MissingDevModelInfo = "MissingDevModelInfo",
66 /// `MissingParam`.
67 MissingParam = "MissingParam",
68 /// `NoBatteryAvailable`.
69 NoBatteryAvailable = "NoBatteryAvailable",
70 /// `NoCable`.
71 NoCable = "NoCable",
72 /// `NoError`.
73 NoError = "NoError",
74 /// `NoFreqWattCurve`.
75 NoFreqWattCurve = "NoFreqWattCurve",
76 /// `NoPhaseForDC`.
77 NoPhaseForDC = "NoPhaseForDC",
78 /// `NoSecurityDowngrade`.
79 NoSecurityDowngrade = "NoSecurityDowngrade",
80 /// `NoSignalWattCurve`.
81 NoSignalWattCurve = "NoSignalWattCurve",
82 /// `NotEnabled`.
83 NotEnabled = "NotEnabled",
84 /// `NotFound`.
85 NotFound = "NotFound",
86 /// `OutOfMemory`.
87 OutOfMemory = "OutOfMemory",
88 /// `OutOfStorage`.
89 OutOfStorage = "OutOfStorage",
90 /// `PhaseConflict`.
91 PhaseConflict = "PhaseConflict",
92 /// `PriorityNetworkConf`.
93 PriorityNetworkConf = "PriorityNetworkConf",
94 /// `RateLimitExceeded`.
95 RateLimitExceeded = "RateLimitExceeded",
96 /// `ReadOnly`.
97 ReadOnly = "ReadOnly",
98 /// `RedirectNotAllowed`.
99 RedirectNotAllowed = "RedirectNotAllowed",
100 /// `TooLargeElement`.
101 TooLargeElement = "TooLargeElement",
102 /// `TooManyElements`.
103 TooManyElements = "TooManyElements",
104 /// `TxInProgress`.
105 TxInProgress = "TxInProgress",
106 /// `TxNotFound`.
107 TxNotFound = "TxNotFound",
108 /// `TxStarted`.
109 TxStarted = "TxStarted",
110 /// `UnknownConnectorId`.
111 UnknownConnectorId = "UnknownConnectorId",
112 /// `UnknownConnectorType`.
113 UnknownConnectorType = "UnknownConnectorType",
114 /// `UnknownEvse`.
115 UnknownEvse = "UnknownEvse",
116 /// `Unspecified`.
117 Unspecified = "Unspecified",
118 /// `UnsupportedKind`.
119 UnsupportedKind = "UnsupportedKind",
120 /// `UnsupportedParam`.
121 UnsupportedParam = "UnsupportedParam",
122 /// `UnsupportedPurpose`.
123 UnsupportedPurpose = "UnsupportedPurpose",
124 /// `UnsupportedRateUnit`.
125 UnsupportedRateUnit = "UnsupportedRateUnit",
126 /// `UnsupportedRequest`.
127 UnsupportedRequest = "UnsupportedRequest",
128 /// `ValueOutOfRange`.
129 ValueOutOfRange = "ValueOutOfRange",
130 /// `ValuePositiveOnly`.
131 ValuePositiveOnly = "ValuePositiveOnly",
132 /// `ValueTooHigh`.
133 ValueTooHigh = "ValueTooHigh",
134 /// `ValueTooLow`.
135 ValueTooLow = "ValueTooLow",
136 /// `ValueZeroNotAllowed`.
137 ValueZeroNotAllowed = "ValueZeroNotAllowed",
138 /// `WriteOnly`.
139 WriteOnly = "WriteOnly",
140 }
141}