@aws-sdk/client-iot-events 3.118.1 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +130 -105
- package/dist-es/protocols/Aws_restJson1.js +130 -105
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-iot-events
|
|
@@ -776,8 +776,7 @@ const deserializeAws_restJson1CreateAlarmModelCommandError = async (output, cont
|
|
|
776
776
|
body: await parseBody(output.body, context),
|
|
777
777
|
};
|
|
778
778
|
let response;
|
|
779
|
-
|
|
780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
780
|
switch (errorCode) {
|
|
782
781
|
case "InternalFailureException":
|
|
783
782
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -802,10 +801,12 @@ const deserializeAws_restJson1CreateAlarmModelCommandError = async (output, cont
|
|
|
802
801
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
803
802
|
default:
|
|
804
803
|
const parsedBody = parsedOutput.body;
|
|
804
|
+
const $metadata = deserializeMetadata(output);
|
|
805
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
805
806
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
807
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
807
808
|
$fault: "client",
|
|
808
|
-
$metadata
|
|
809
|
+
$metadata,
|
|
809
810
|
});
|
|
810
811
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
811
812
|
}
|
|
@@ -831,8 +832,7 @@ const deserializeAws_restJson1CreateDetectorModelCommandError = async (output, c
|
|
|
831
832
|
body: await parseBody(output.body, context),
|
|
832
833
|
};
|
|
833
834
|
let response;
|
|
834
|
-
|
|
835
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
836
|
switch (errorCode) {
|
|
837
837
|
case "InternalFailureException":
|
|
838
838
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -857,10 +857,12 @@ const deserializeAws_restJson1CreateDetectorModelCommandError = async (output, c
|
|
|
857
857
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
858
858
|
default:
|
|
859
859
|
const parsedBody = parsedOutput.body;
|
|
860
|
+
const $metadata = deserializeMetadata(output);
|
|
861
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
860
862
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
861
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
863
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
862
864
|
$fault: "client",
|
|
863
|
-
$metadata
|
|
865
|
+
$metadata,
|
|
864
866
|
});
|
|
865
867
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
866
868
|
}
|
|
@@ -886,8 +888,7 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
886
888
|
body: await parseBody(output.body, context),
|
|
887
889
|
};
|
|
888
890
|
let response;
|
|
889
|
-
|
|
890
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
892
|
switch (errorCode) {
|
|
892
893
|
case "InternalFailureException":
|
|
893
894
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -906,10 +907,12 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
906
907
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
907
908
|
default:
|
|
908
909
|
const parsedBody = parsedOutput.body;
|
|
910
|
+
const $metadata = deserializeMetadata(output);
|
|
911
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
909
912
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
910
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
913
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
911
914
|
$fault: "client",
|
|
912
|
-
$metadata
|
|
915
|
+
$metadata,
|
|
913
916
|
});
|
|
914
917
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
915
918
|
}
|
|
@@ -931,8 +934,7 @@ const deserializeAws_restJson1DeleteAlarmModelCommandError = async (output, cont
|
|
|
931
934
|
body: await parseBody(output.body, context),
|
|
932
935
|
};
|
|
933
936
|
let response;
|
|
934
|
-
|
|
935
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
938
|
switch (errorCode) {
|
|
937
939
|
case "InternalFailureException":
|
|
938
940
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -954,10 +956,12 @@ const deserializeAws_restJson1DeleteAlarmModelCommandError = async (output, cont
|
|
|
954
956
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
955
957
|
default:
|
|
956
958
|
const parsedBody = parsedOutput.body;
|
|
959
|
+
const $metadata = deserializeMetadata(output);
|
|
960
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
957
961
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
962
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
959
963
|
$fault: "client",
|
|
960
|
-
$metadata
|
|
964
|
+
$metadata,
|
|
961
965
|
});
|
|
962
966
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
963
967
|
}
|
|
@@ -979,8 +983,7 @@ const deserializeAws_restJson1DeleteDetectorModelCommandError = async (output, c
|
|
|
979
983
|
body: await parseBody(output.body, context),
|
|
980
984
|
};
|
|
981
985
|
let response;
|
|
982
|
-
|
|
983
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
987
|
switch (errorCode) {
|
|
985
988
|
case "InternalFailureException":
|
|
986
989
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1002,10 +1005,12 @@ const deserializeAws_restJson1DeleteDetectorModelCommandError = async (output, c
|
|
|
1002
1005
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1003
1006
|
default:
|
|
1004
1007
|
const parsedBody = parsedOutput.body;
|
|
1008
|
+
const $metadata = deserializeMetadata(output);
|
|
1009
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1005
1010
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1006
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1011
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1007
1012
|
$fault: "client",
|
|
1008
|
-
$metadata
|
|
1013
|
+
$metadata,
|
|
1009
1014
|
});
|
|
1010
1015
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1011
1016
|
}
|
|
@@ -1027,8 +1032,7 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
1027
1032
|
body: await parseBody(output.body, context),
|
|
1028
1033
|
};
|
|
1029
1034
|
let response;
|
|
1030
|
-
|
|
1031
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
1036
|
switch (errorCode) {
|
|
1033
1037
|
case "InternalFailureException":
|
|
1034
1038
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1050,10 +1054,12 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
1050
1054
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1051
1055
|
default:
|
|
1052
1056
|
const parsedBody = parsedOutput.body;
|
|
1057
|
+
const $metadata = deserializeMetadata(output);
|
|
1058
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1053
1059
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1054
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1060
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1055
1061
|
$fault: "client",
|
|
1056
|
-
$metadata
|
|
1062
|
+
$metadata,
|
|
1057
1063
|
});
|
|
1058
1064
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1059
1065
|
}
|
|
@@ -1135,8 +1141,7 @@ const deserializeAws_restJson1DescribeAlarmModelCommandError = async (output, co
|
|
|
1135
1141
|
body: await parseBody(output.body, context),
|
|
1136
1142
|
};
|
|
1137
1143
|
let response;
|
|
1138
|
-
|
|
1139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1145
|
switch (errorCode) {
|
|
1141
1146
|
case "InternalFailureException":
|
|
1142
1147
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1155,10 +1160,12 @@ const deserializeAws_restJson1DescribeAlarmModelCommandError = async (output, co
|
|
|
1155
1160
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1156
1161
|
default:
|
|
1157
1162
|
const parsedBody = parsedOutput.body;
|
|
1163
|
+
const $metadata = deserializeMetadata(output);
|
|
1164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1158
1165
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1160
1167
|
$fault: "client",
|
|
1161
|
-
$metadata
|
|
1168
|
+
$metadata,
|
|
1162
1169
|
});
|
|
1163
1170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1164
1171
|
}
|
|
@@ -1184,8 +1191,7 @@ const deserializeAws_restJson1DescribeDetectorModelCommandError = async (output,
|
|
|
1184
1191
|
body: await parseBody(output.body, context),
|
|
1185
1192
|
};
|
|
1186
1193
|
let response;
|
|
1187
|
-
|
|
1188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
1195
|
switch (errorCode) {
|
|
1190
1196
|
case "InternalFailureException":
|
|
1191
1197
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1204,10 +1210,12 @@ const deserializeAws_restJson1DescribeDetectorModelCommandError = async (output,
|
|
|
1204
1210
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1205
1211
|
default:
|
|
1206
1212
|
const parsedBody = parsedOutput.body;
|
|
1213
|
+
const $metadata = deserializeMetadata(output);
|
|
1214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1207
1215
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1209
1217
|
$fault: "client",
|
|
1210
|
-
$metadata
|
|
1218
|
+
$metadata,
|
|
1211
1219
|
});
|
|
1212
1220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1213
1221
|
}
|
|
@@ -1233,8 +1241,7 @@ const deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = async
|
|
|
1233
1241
|
body: await parseBody(output.body, context),
|
|
1234
1242
|
};
|
|
1235
1243
|
let response;
|
|
1236
|
-
|
|
1237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
1245
|
switch (errorCode) {
|
|
1239
1246
|
case "InternalFailureException":
|
|
1240
1247
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1253,10 +1260,12 @@ const deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = async
|
|
|
1253
1260
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1254
1261
|
default:
|
|
1255
1262
|
const parsedBody = parsedOutput.body;
|
|
1263
|
+
const $metadata = deserializeMetadata(output);
|
|
1264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1256
1265
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1258
1267
|
$fault: "client",
|
|
1259
|
-
$metadata
|
|
1268
|
+
$metadata,
|
|
1260
1269
|
});
|
|
1261
1270
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1262
1271
|
}
|
|
@@ -1282,8 +1291,7 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
1282
1291
|
body: await parseBody(output.body, context),
|
|
1283
1292
|
};
|
|
1284
1293
|
let response;
|
|
1285
|
-
|
|
1286
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
1295
|
switch (errorCode) {
|
|
1288
1296
|
case "InternalFailureException":
|
|
1289
1297
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1302,10 +1310,12 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
1302
1310
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1303
1311
|
default:
|
|
1304
1312
|
const parsedBody = parsedOutput.body;
|
|
1313
|
+
const $metadata = deserializeMetadata(output);
|
|
1314
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1305
1315
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1306
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1307
1317
|
$fault: "client",
|
|
1308
|
-
$metadata
|
|
1318
|
+
$metadata,
|
|
1309
1319
|
});
|
|
1310
1320
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1311
1321
|
}
|
|
@@ -1331,8 +1341,7 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output
|
|
|
1331
1341
|
body: await parseBody(output.body, context),
|
|
1332
1342
|
};
|
|
1333
1343
|
let response;
|
|
1334
|
-
|
|
1335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
1345
|
switch (errorCode) {
|
|
1337
1346
|
case "InternalFailureException":
|
|
1338
1347
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1354,10 +1363,12 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output
|
|
|
1354
1363
|
throw await deserializeAws_restJson1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1355
1364
|
default:
|
|
1356
1365
|
const parsedBody = parsedOutput.body;
|
|
1366
|
+
const $metadata = deserializeMetadata(output);
|
|
1367
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1357
1368
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1369
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1359
1370
|
$fault: "client",
|
|
1360
|
-
$metadata
|
|
1371
|
+
$metadata,
|
|
1361
1372
|
});
|
|
1362
1373
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1363
1374
|
}
|
|
@@ -1387,8 +1398,7 @@ const deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = asyn
|
|
|
1387
1398
|
body: await parseBody(output.body, context),
|
|
1388
1399
|
};
|
|
1389
1400
|
let response;
|
|
1390
|
-
|
|
1391
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1402
|
switch (errorCode) {
|
|
1393
1403
|
case "InternalFailureException":
|
|
1394
1404
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1407,10 +1417,12 @@ const deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = asyn
|
|
|
1407
1417
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1408
1418
|
default:
|
|
1409
1419
|
const parsedBody = parsedOutput.body;
|
|
1420
|
+
const $metadata = deserializeMetadata(output);
|
|
1421
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1410
1422
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1411
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1412
1424
|
$fault: "client",
|
|
1413
|
-
$metadata
|
|
1425
|
+
$metadata,
|
|
1414
1426
|
});
|
|
1415
1427
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1416
1428
|
}
|
|
@@ -1440,8 +1452,7 @@ const deserializeAws_restJson1ListAlarmModelsCommandError = async (output, conte
|
|
|
1440
1452
|
body: await parseBody(output.body, context),
|
|
1441
1453
|
};
|
|
1442
1454
|
let response;
|
|
1443
|
-
|
|
1444
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
1456
|
switch (errorCode) {
|
|
1446
1457
|
case "InternalFailureException":
|
|
1447
1458
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1457,10 +1468,12 @@ const deserializeAws_restJson1ListAlarmModelsCommandError = async (output, conte
|
|
|
1457
1468
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1458
1469
|
default:
|
|
1459
1470
|
const parsedBody = parsedOutput.body;
|
|
1471
|
+
const $metadata = deserializeMetadata(output);
|
|
1472
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1460
1473
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1462
1475
|
$fault: "client",
|
|
1463
|
-
$metadata
|
|
1476
|
+
$metadata,
|
|
1464
1477
|
});
|
|
1465
1478
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1466
1479
|
}
|
|
@@ -1490,8 +1503,7 @@ const deserializeAws_restJson1ListAlarmModelVersionsCommandError = async (output
|
|
|
1490
1503
|
body: await parseBody(output.body, context),
|
|
1491
1504
|
};
|
|
1492
1505
|
let response;
|
|
1493
|
-
|
|
1494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
1507
|
switch (errorCode) {
|
|
1496
1508
|
case "InternalFailureException":
|
|
1497
1509
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1510,10 +1522,12 @@ const deserializeAws_restJson1ListAlarmModelVersionsCommandError = async (output
|
|
|
1510
1522
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1511
1523
|
default:
|
|
1512
1524
|
const parsedBody = parsedOutput.body;
|
|
1525
|
+
const $metadata = deserializeMetadata(output);
|
|
1526
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1513
1527
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1515
1529
|
$fault: "client",
|
|
1516
|
-
$metadata
|
|
1530
|
+
$metadata,
|
|
1517
1531
|
});
|
|
1518
1532
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1519
1533
|
}
|
|
@@ -1543,8 +1557,7 @@ const deserializeAws_restJson1ListDetectorModelsCommandError = async (output, co
|
|
|
1543
1557
|
body: await parseBody(output.body, context),
|
|
1544
1558
|
};
|
|
1545
1559
|
let response;
|
|
1546
|
-
|
|
1547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
1561
|
switch (errorCode) {
|
|
1549
1562
|
case "InternalFailureException":
|
|
1550
1563
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1560,10 +1573,12 @@ const deserializeAws_restJson1ListDetectorModelsCommandError = async (output, co
|
|
|
1560
1573
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1561
1574
|
default:
|
|
1562
1575
|
const parsedBody = parsedOutput.body;
|
|
1576
|
+
const $metadata = deserializeMetadata(output);
|
|
1577
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1563
1578
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1565
1580
|
$fault: "client",
|
|
1566
|
-
$metadata
|
|
1581
|
+
$metadata,
|
|
1567
1582
|
});
|
|
1568
1583
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1569
1584
|
}
|
|
@@ -1593,8 +1608,7 @@ const deserializeAws_restJson1ListDetectorModelVersionsCommandError = async (out
|
|
|
1593
1608
|
body: await parseBody(output.body, context),
|
|
1594
1609
|
};
|
|
1595
1610
|
let response;
|
|
1596
|
-
|
|
1597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1611
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
1612
|
switch (errorCode) {
|
|
1599
1613
|
case "InternalFailureException":
|
|
1600
1614
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1613,10 +1627,12 @@ const deserializeAws_restJson1ListDetectorModelVersionsCommandError = async (out
|
|
|
1613
1627
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1614
1628
|
default:
|
|
1615
1629
|
const parsedBody = parsedOutput.body;
|
|
1630
|
+
const $metadata = deserializeMetadata(output);
|
|
1631
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1616
1632
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1617
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1633
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1618
1634
|
$fault: "client",
|
|
1619
|
-
$metadata
|
|
1635
|
+
$metadata,
|
|
1620
1636
|
});
|
|
1621
1637
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1622
1638
|
}
|
|
@@ -1646,8 +1662,7 @@ const deserializeAws_restJson1ListInputRoutingsCommandError = async (output, con
|
|
|
1646
1662
|
body: await parseBody(output.body, context),
|
|
1647
1663
|
};
|
|
1648
1664
|
let response;
|
|
1649
|
-
|
|
1650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
1666
|
switch (errorCode) {
|
|
1652
1667
|
case "InternalFailureException":
|
|
1653
1668
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1666,10 +1681,12 @@ const deserializeAws_restJson1ListInputRoutingsCommandError = async (output, con
|
|
|
1666
1681
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1667
1682
|
default:
|
|
1668
1683
|
const parsedBody = parsedOutput.body;
|
|
1684
|
+
const $metadata = deserializeMetadata(output);
|
|
1685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1669
1686
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1670
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1671
1688
|
$fault: "client",
|
|
1672
|
-
$metadata
|
|
1689
|
+
$metadata,
|
|
1673
1690
|
});
|
|
1674
1691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1675
1692
|
}
|
|
@@ -1699,8 +1716,7 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
1699
1716
|
body: await parseBody(output.body, context),
|
|
1700
1717
|
};
|
|
1701
1718
|
let response;
|
|
1702
|
-
|
|
1703
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
1720
|
switch (errorCode) {
|
|
1705
1721
|
case "InternalFailureException":
|
|
1706
1722
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1716,10 +1732,12 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
1716
1732
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1717
1733
|
default:
|
|
1718
1734
|
const parsedBody = parsedOutput.body;
|
|
1735
|
+
const $metadata = deserializeMetadata(output);
|
|
1736
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1719
1737
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1720
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1721
1739
|
$fault: "client",
|
|
1722
|
-
$metadata
|
|
1740
|
+
$metadata,
|
|
1723
1741
|
});
|
|
1724
1742
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1725
1743
|
}
|
|
@@ -1745,8 +1763,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1745
1763
|
body: await parseBody(output.body, context),
|
|
1746
1764
|
};
|
|
1747
1765
|
let response;
|
|
1748
|
-
|
|
1749
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1750
1767
|
switch (errorCode) {
|
|
1751
1768
|
case "InternalFailureException":
|
|
1752
1769
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1765,10 +1782,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1765
1782
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1766
1783
|
default:
|
|
1767
1784
|
const parsedBody = parsedOutput.body;
|
|
1785
|
+
const $metadata = deserializeMetadata(output);
|
|
1786
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1768
1787
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1769
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1770
1789
|
$fault: "client",
|
|
1771
|
-
$metadata
|
|
1790
|
+
$metadata,
|
|
1772
1791
|
});
|
|
1773
1792
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1774
1793
|
}
|
|
@@ -1790,8 +1809,7 @@ const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, con
|
|
|
1790
1809
|
body: await parseBody(output.body, context),
|
|
1791
1810
|
};
|
|
1792
1811
|
let response;
|
|
1793
|
-
|
|
1794
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
1813
|
switch (errorCode) {
|
|
1796
1814
|
case "InternalFailureException":
|
|
1797
1815
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1813,10 +1831,12 @@ const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, con
|
|
|
1813
1831
|
throw await deserializeAws_restJson1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1814
1832
|
default:
|
|
1815
1833
|
const parsedBody = parsedOutput.body;
|
|
1834
|
+
const $metadata = deserializeMetadata(output);
|
|
1835
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1816
1836
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1817
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1837
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1818
1838
|
$fault: "client",
|
|
1819
|
-
$metadata
|
|
1839
|
+
$metadata,
|
|
1820
1840
|
});
|
|
1821
1841
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1822
1842
|
}
|
|
@@ -1842,8 +1862,7 @@ const deserializeAws_restJson1StartDetectorModelAnalysisCommandError = async (ou
|
|
|
1842
1862
|
body: await parseBody(output.body, context),
|
|
1843
1863
|
};
|
|
1844
1864
|
let response;
|
|
1845
|
-
|
|
1846
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
1866
|
switch (errorCode) {
|
|
1848
1867
|
case "InternalFailureException":
|
|
1849
1868
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1862,10 +1881,12 @@ const deserializeAws_restJson1StartDetectorModelAnalysisCommandError = async (ou
|
|
|
1862
1881
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1863
1882
|
default:
|
|
1864
1883
|
const parsedBody = parsedOutput.body;
|
|
1884
|
+
const $metadata = deserializeMetadata(output);
|
|
1885
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1865
1886
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1887
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1867
1888
|
$fault: "client",
|
|
1868
|
-
$metadata
|
|
1889
|
+
$metadata,
|
|
1869
1890
|
});
|
|
1870
1891
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1871
1892
|
}
|
|
@@ -1887,8 +1908,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1887
1908
|
body: await parseBody(output.body, context),
|
|
1888
1909
|
};
|
|
1889
1910
|
let response;
|
|
1890
|
-
|
|
1891
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
1912
|
switch (errorCode) {
|
|
1893
1913
|
case "InternalFailureException":
|
|
1894
1914
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1910,10 +1930,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1910
1930
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1911
1931
|
default:
|
|
1912
1932
|
const parsedBody = parsedOutput.body;
|
|
1933
|
+
const $metadata = deserializeMetadata(output);
|
|
1934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1913
1935
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1914
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1915
1937
|
$fault: "client",
|
|
1916
|
-
$metadata
|
|
1938
|
+
$metadata,
|
|
1917
1939
|
});
|
|
1918
1940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1919
1941
|
}
|
|
@@ -1935,8 +1957,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1935
1957
|
body: await parseBody(output.body, context),
|
|
1936
1958
|
};
|
|
1937
1959
|
let response;
|
|
1938
|
-
|
|
1939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1961
|
switch (errorCode) {
|
|
1941
1962
|
case "InternalFailureException":
|
|
1942
1963
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -1955,10 +1976,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1955
1976
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1956
1977
|
default:
|
|
1957
1978
|
const parsedBody = parsedOutput.body;
|
|
1979
|
+
const $metadata = deserializeMetadata(output);
|
|
1980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1958
1981
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
1959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1960
1983
|
$fault: "client",
|
|
1961
|
-
$metadata
|
|
1984
|
+
$metadata,
|
|
1962
1985
|
});
|
|
1963
1986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1964
1987
|
}
|
|
@@ -2000,8 +2023,7 @@ const deserializeAws_restJson1UpdateAlarmModelCommandError = async (output, cont
|
|
|
2000
2023
|
body: await parseBody(output.body, context),
|
|
2001
2024
|
};
|
|
2002
2025
|
let response;
|
|
2003
|
-
|
|
2004
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
2027
|
switch (errorCode) {
|
|
2006
2028
|
case "InternalFailureException":
|
|
2007
2029
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -2023,10 +2045,12 @@ const deserializeAws_restJson1UpdateAlarmModelCommandError = async (output, cont
|
|
|
2023
2045
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2024
2046
|
default:
|
|
2025
2047
|
const parsedBody = parsedOutput.body;
|
|
2048
|
+
const $metadata = deserializeMetadata(output);
|
|
2049
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2026
2050
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
2027
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2051
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2028
2052
|
$fault: "client",
|
|
2029
|
-
$metadata
|
|
2053
|
+
$metadata,
|
|
2030
2054
|
});
|
|
2031
2055
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2032
2056
|
}
|
|
@@ -2052,8 +2076,7 @@ const deserializeAws_restJson1UpdateDetectorModelCommandError = async (output, c
|
|
|
2052
2076
|
body: await parseBody(output.body, context),
|
|
2053
2077
|
};
|
|
2054
2078
|
let response;
|
|
2055
|
-
|
|
2056
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
2080
|
switch (errorCode) {
|
|
2058
2081
|
case "InternalFailureException":
|
|
2059
2082
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -2075,10 +2098,12 @@ const deserializeAws_restJson1UpdateDetectorModelCommandError = async (output, c
|
|
|
2075
2098
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2076
2099
|
default:
|
|
2077
2100
|
const parsedBody = parsedOutput.body;
|
|
2101
|
+
const $metadata = deserializeMetadata(output);
|
|
2102
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2078
2103
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
2079
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2080
2105
|
$fault: "client",
|
|
2081
|
-
$metadata
|
|
2106
|
+
$metadata,
|
|
2082
2107
|
});
|
|
2083
2108
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2084
2109
|
}
|
|
@@ -2104,8 +2129,7 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
2104
2129
|
body: await parseBody(output.body, context),
|
|
2105
2130
|
};
|
|
2106
2131
|
let response;
|
|
2107
|
-
|
|
2108
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
2133
|
switch (errorCode) {
|
|
2110
2134
|
case "InternalFailureException":
|
|
2111
2135
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
@@ -2127,10 +2151,12 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
2127
2151
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2128
2152
|
default:
|
|
2129
2153
|
const parsedBody = parsedOutput.body;
|
|
2154
|
+
const $metadata = deserializeMetadata(output);
|
|
2155
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2130
2156
|
response = new IoTEventsServiceException_1.IoTEventsServiceException({
|
|
2131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2157
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2132
2158
|
$fault: "client",
|
|
2133
|
-
$metadata
|
|
2159
|
+
$metadata,
|
|
2134
2160
|
});
|
|
2135
2161
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2136
2162
|
}
|
|
@@ -3635,5 +3661,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3635
3661
|
if (data["__type"] !== undefined) {
|
|
3636
3662
|
return sanitizeErrorCode(data["__type"]);
|
|
3637
3663
|
}
|
|
3638
|
-
return "";
|
|
3639
3664
|
};
|