Handle reset error
MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -226,7 +226,7 @@ export default class ChargingStationService {
throw new AppError({
source: Constants.CENTRAL_SERVER,
action: action,
- errorCode: HTTPError.GENERAL_ERROR,
+ errorCode: HTTPError.CHARGING_STATION_RESET,
message: 'Error occurred while restarting the charging station',
module: MODULE_NAME, method: 'handleUpdateChargingStationParams',
user: req.user, actionOnUser: req.user,

MODIFY
src/types/HTTPError.ts
src/types/HTTPError.ts
@@ -58,6 +58,8 @@ export enum HTTPError {
CANNOT_ACQUIRE_LOCK = 510,
INVALID_FILE_FORMAT = 583,
+
+ CHARGING_STATION_RESET = 584,
}
export enum HTTPAuthError {

Handle reset error