@aws-sdk/client-ivs 3.112.0 → 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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +140 -113
- package/dist-es/protocols/Aws_restJson1.js +140 -113
- package/package.json +6 -6
|
@@ -687,15 +687,16 @@ const deserializeAws_restJson1BatchGetChannelCommandError = async (output, conte
|
|
|
687
687
|
body: await parseBody(output.body, context),
|
|
688
688
|
};
|
|
689
689
|
let response;
|
|
690
|
-
|
|
691
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
691
|
switch (errorCode) {
|
|
693
692
|
default:
|
|
694
693
|
const parsedBody = parsedOutput.body;
|
|
694
|
+
const $metadata = deserializeMetadata(output);
|
|
695
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
695
696
|
response = new IvsServiceException_1.IvsServiceException({
|
|
696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
697
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
697
698
|
$fault: "client",
|
|
698
|
-
$metadata
|
|
699
|
+
$metadata,
|
|
699
700
|
});
|
|
700
701
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
701
702
|
}
|
|
@@ -725,15 +726,16 @@ const deserializeAws_restJson1BatchGetStreamKeyCommandError = async (output, con
|
|
|
725
726
|
body: await parseBody(output.body, context),
|
|
726
727
|
};
|
|
727
728
|
let response;
|
|
728
|
-
|
|
729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
730
|
switch (errorCode) {
|
|
731
731
|
default:
|
|
732
732
|
const parsedBody = parsedOutput.body;
|
|
733
|
+
const $metadata = deserializeMetadata(output);
|
|
734
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
733
735
|
response = new IvsServiceException_1.IvsServiceException({
|
|
734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
735
737
|
$fault: "client",
|
|
736
|
-
$metadata
|
|
738
|
+
$metadata,
|
|
737
739
|
});
|
|
738
740
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
739
741
|
}
|
|
@@ -763,8 +765,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
763
765
|
body: await parseBody(output.body, context),
|
|
764
766
|
};
|
|
765
767
|
let response;
|
|
766
|
-
|
|
767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
769
|
switch (errorCode) {
|
|
769
770
|
case "AccessDeniedException":
|
|
770
771
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -783,10 +784,12 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
783
784
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
784
785
|
default:
|
|
785
786
|
const parsedBody = parsedOutput.body;
|
|
787
|
+
const $metadata = deserializeMetadata(output);
|
|
788
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
786
789
|
response = new IvsServiceException_1.IvsServiceException({
|
|
787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
790
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
788
791
|
$fault: "client",
|
|
789
|
-
$metadata
|
|
792
|
+
$metadata,
|
|
790
793
|
});
|
|
791
794
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
792
795
|
}
|
|
@@ -812,8 +815,7 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
|
|
|
812
815
|
body: await parseBody(output.body, context),
|
|
813
816
|
};
|
|
814
817
|
let response;
|
|
815
|
-
|
|
816
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
819
|
switch (errorCode) {
|
|
818
820
|
case "AccessDeniedException":
|
|
819
821
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -835,10 +837,12 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
|
|
|
835
837
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
836
838
|
default:
|
|
837
839
|
const parsedBody = parsedOutput.body;
|
|
840
|
+
const $metadata = deserializeMetadata(output);
|
|
841
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
838
842
|
response = new IvsServiceException_1.IvsServiceException({
|
|
839
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
840
844
|
$fault: "client",
|
|
841
|
-
$metadata
|
|
845
|
+
$metadata,
|
|
842
846
|
});
|
|
843
847
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
844
848
|
}
|
|
@@ -864,8 +868,7 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
|
|
|
864
868
|
body: await parseBody(output.body, context),
|
|
865
869
|
};
|
|
866
870
|
let response;
|
|
867
|
-
|
|
868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
872
|
switch (errorCode) {
|
|
870
873
|
case "AccessDeniedException":
|
|
871
874
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -884,10 +887,12 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
|
|
|
884
887
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
885
888
|
default:
|
|
886
889
|
const parsedBody = parsedOutput.body;
|
|
890
|
+
const $metadata = deserializeMetadata(output);
|
|
891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
887
892
|
response = new IvsServiceException_1.IvsServiceException({
|
|
888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
889
894
|
$fault: "client",
|
|
890
|
-
$metadata
|
|
895
|
+
$metadata,
|
|
891
896
|
});
|
|
892
897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
893
898
|
}
|
|
@@ -909,8 +914,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
909
914
|
body: await parseBody(output.body, context),
|
|
910
915
|
};
|
|
911
916
|
let response;
|
|
912
|
-
|
|
913
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
918
|
switch (errorCode) {
|
|
915
919
|
case "AccessDeniedException":
|
|
916
920
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -929,10 +933,12 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
929
933
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
930
934
|
default:
|
|
931
935
|
const parsedBody = parsedOutput.body;
|
|
936
|
+
const $metadata = deserializeMetadata(output);
|
|
937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
932
938
|
response = new IvsServiceException_1.IvsServiceException({
|
|
933
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
934
940
|
$fault: "client",
|
|
935
|
-
$metadata
|
|
941
|
+
$metadata,
|
|
936
942
|
});
|
|
937
943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
938
944
|
}
|
|
@@ -954,8 +960,7 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
|
|
|
954
960
|
body: await parseBody(output.body, context),
|
|
955
961
|
};
|
|
956
962
|
let response;
|
|
957
|
-
|
|
958
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
964
|
switch (errorCode) {
|
|
960
965
|
case "AccessDeniedException":
|
|
961
966
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -971,10 +976,12 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
|
|
|
971
976
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
972
977
|
default:
|
|
973
978
|
const parsedBody = parsedOutput.body;
|
|
979
|
+
const $metadata = deserializeMetadata(output);
|
|
980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
974
981
|
response = new IvsServiceException_1.IvsServiceException({
|
|
975
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
976
983
|
$fault: "client",
|
|
977
|
-
$metadata
|
|
984
|
+
$metadata,
|
|
978
985
|
});
|
|
979
986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
980
987
|
}
|
|
@@ -996,8 +1003,7 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
|
|
|
996
1003
|
body: await parseBody(output.body, context),
|
|
997
1004
|
};
|
|
998
1005
|
let response;
|
|
999
|
-
|
|
1000
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
1007
|
switch (errorCode) {
|
|
1002
1008
|
case "AccessDeniedException":
|
|
1003
1009
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1016,10 +1022,12 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
|
|
|
1016
1022
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1017
1023
|
default:
|
|
1018
1024
|
const parsedBody = parsedOutput.body;
|
|
1025
|
+
const $metadata = deserializeMetadata(output);
|
|
1026
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1019
1027
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1020
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1021
1029
|
$fault: "client",
|
|
1022
|
-
$metadata
|
|
1030
|
+
$metadata,
|
|
1023
1031
|
});
|
|
1024
1032
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1025
1033
|
}
|
|
@@ -1041,8 +1049,7 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
|
|
|
1041
1049
|
body: await parseBody(output.body, context),
|
|
1042
1050
|
};
|
|
1043
1051
|
let response;
|
|
1044
|
-
|
|
1045
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
1053
|
switch (errorCode) {
|
|
1047
1054
|
case "AccessDeniedException":
|
|
1048
1055
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1058,10 +1065,12 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
|
|
|
1058
1065
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1059
1066
|
default:
|
|
1060
1067
|
const parsedBody = parsedOutput.body;
|
|
1068
|
+
const $metadata = deserializeMetadata(output);
|
|
1069
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1061
1070
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1062
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1063
1072
|
$fault: "client",
|
|
1064
|
-
$metadata
|
|
1073
|
+
$metadata,
|
|
1065
1074
|
});
|
|
1066
1075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1067
1076
|
}
|
|
@@ -1087,8 +1096,7 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
|
|
|
1087
1096
|
body: await parseBody(output.body, context),
|
|
1088
1097
|
};
|
|
1089
1098
|
let response;
|
|
1090
|
-
|
|
1091
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1100
|
switch (errorCode) {
|
|
1093
1101
|
case "AccessDeniedException":
|
|
1094
1102
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1101,10 +1109,12 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
|
|
|
1101
1109
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1102
1110
|
default:
|
|
1103
1111
|
const parsedBody = parsedOutput.body;
|
|
1112
|
+
const $metadata = deserializeMetadata(output);
|
|
1113
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1104
1114
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1115
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1106
1116
|
$fault: "client",
|
|
1107
|
-
$metadata
|
|
1117
|
+
$metadata,
|
|
1108
1118
|
});
|
|
1109
1119
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1120
|
}
|
|
@@ -1130,8 +1140,7 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
|
|
|
1130
1140
|
body: await parseBody(output.body, context),
|
|
1131
1141
|
};
|
|
1132
1142
|
let response;
|
|
1133
|
-
|
|
1134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
1144
|
switch (errorCode) {
|
|
1136
1145
|
case "AccessDeniedException":
|
|
1137
1146
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1144,10 +1153,12 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
|
|
|
1144
1153
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1145
1154
|
default:
|
|
1146
1155
|
const parsedBody = parsedOutput.body;
|
|
1156
|
+
const $metadata = deserializeMetadata(output);
|
|
1157
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1147
1158
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1149
1160
|
$fault: "client",
|
|
1150
|
-
$metadata
|
|
1161
|
+
$metadata,
|
|
1151
1162
|
});
|
|
1152
1163
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1153
1164
|
}
|
|
@@ -1173,8 +1184,7 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
|
|
|
1173
1184
|
body: await parseBody(output.body, context),
|
|
1174
1185
|
};
|
|
1175
1186
|
let response;
|
|
1176
|
-
|
|
1177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1187
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
1188
|
switch (errorCode) {
|
|
1179
1189
|
case "AccessDeniedException":
|
|
1180
1190
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1190,10 +1200,12 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
|
|
|
1190
1200
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1191
1201
|
default:
|
|
1192
1202
|
const parsedBody = parsedOutput.body;
|
|
1203
|
+
const $metadata = deserializeMetadata(output);
|
|
1204
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1193
1205
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1194
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1206
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1195
1207
|
$fault: "client",
|
|
1196
|
-
$metadata
|
|
1208
|
+
$metadata,
|
|
1197
1209
|
});
|
|
1198
1210
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1199
1211
|
}
|
|
@@ -1219,8 +1231,7 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
|
|
|
1219
1231
|
body: await parseBody(output.body, context),
|
|
1220
1232
|
};
|
|
1221
1233
|
let response;
|
|
1222
|
-
|
|
1223
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
1235
|
switch (errorCode) {
|
|
1225
1236
|
case "AccessDeniedException":
|
|
1226
1237
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1236,10 +1247,12 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
|
|
|
1236
1247
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1237
1248
|
default:
|
|
1238
1249
|
const parsedBody = parsedOutput.body;
|
|
1250
|
+
const $metadata = deserializeMetadata(output);
|
|
1251
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1239
1252
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1253
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1241
1254
|
$fault: "client",
|
|
1242
|
-
$metadata
|
|
1255
|
+
$metadata,
|
|
1243
1256
|
});
|
|
1244
1257
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1245
1258
|
}
|
|
@@ -1265,8 +1278,7 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
|
|
|
1265
1278
|
body: await parseBody(output.body, context),
|
|
1266
1279
|
};
|
|
1267
1280
|
let response;
|
|
1268
|
-
|
|
1269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1282
|
switch (errorCode) {
|
|
1271
1283
|
case "AccessDeniedException":
|
|
1272
1284
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1279,10 +1291,12 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
|
|
|
1279
1291
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1280
1292
|
default:
|
|
1281
1293
|
const parsedBody = parsedOutput.body;
|
|
1294
|
+
const $metadata = deserializeMetadata(output);
|
|
1295
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1282
1296
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1284
1298
|
$fault: "client",
|
|
1285
|
-
$metadata
|
|
1299
|
+
$metadata,
|
|
1286
1300
|
});
|
|
1287
1301
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1288
1302
|
}
|
|
@@ -1308,8 +1322,7 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
|
|
|
1308
1322
|
body: await parseBody(output.body, context),
|
|
1309
1323
|
};
|
|
1310
1324
|
let response;
|
|
1311
|
-
|
|
1312
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1325
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
1326
|
switch (errorCode) {
|
|
1314
1327
|
case "AccessDeniedException":
|
|
1315
1328
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1322,10 +1335,12 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
|
|
|
1322
1335
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1323
1336
|
default:
|
|
1324
1337
|
const parsedBody = parsedOutput.body;
|
|
1338
|
+
const $metadata = deserializeMetadata(output);
|
|
1339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1325
1340
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1327
1342
|
$fault: "client",
|
|
1328
|
-
$metadata
|
|
1343
|
+
$metadata,
|
|
1329
1344
|
});
|
|
1330
1345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1331
1346
|
}
|
|
@@ -1351,8 +1366,7 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
|
|
|
1351
1366
|
body: await parseBody(output.body, context),
|
|
1352
1367
|
};
|
|
1353
1368
|
let response;
|
|
1354
|
-
|
|
1355
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1370
|
switch (errorCode) {
|
|
1357
1371
|
case "AccessDeniedException":
|
|
1358
1372
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1371,10 +1385,12 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
|
|
|
1371
1385
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1372
1386
|
default:
|
|
1373
1387
|
const parsedBody = parsedOutput.body;
|
|
1388
|
+
const $metadata = deserializeMetadata(output);
|
|
1389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1374
1390
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1375
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1376
1392
|
$fault: "client",
|
|
1377
|
-
$metadata
|
|
1393
|
+
$metadata,
|
|
1378
1394
|
});
|
|
1379
1395
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1380
1396
|
}
|
|
@@ -1404,8 +1420,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1404
1420
|
body: await parseBody(output.body, context),
|
|
1405
1421
|
};
|
|
1406
1422
|
let response;
|
|
1407
|
-
|
|
1408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1424
|
switch (errorCode) {
|
|
1410
1425
|
case "AccessDeniedException":
|
|
1411
1426
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1418,10 +1433,12 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1418
1433
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1419
1434
|
default:
|
|
1420
1435
|
const parsedBody = parsedOutput.body;
|
|
1436
|
+
const $metadata = deserializeMetadata(output);
|
|
1437
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1421
1438
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1422
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1439
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1423
1440
|
$fault: "client",
|
|
1424
|
-
$metadata
|
|
1441
|
+
$metadata,
|
|
1425
1442
|
});
|
|
1426
1443
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1427
1444
|
}
|
|
@@ -1451,8 +1468,7 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
|
|
|
1451
1468
|
body: await parseBody(output.body, context),
|
|
1452
1469
|
};
|
|
1453
1470
|
let response;
|
|
1454
|
-
|
|
1455
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1472
|
switch (errorCode) {
|
|
1457
1473
|
case "AccessDeniedException":
|
|
1458
1474
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1462,10 +1478,12 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
|
|
|
1462
1478
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1463
1479
|
default:
|
|
1464
1480
|
const parsedBody = parsedOutput.body;
|
|
1481
|
+
const $metadata = deserializeMetadata(output);
|
|
1482
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1465
1483
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1484
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1467
1485
|
$fault: "client",
|
|
1468
|
-
$metadata
|
|
1486
|
+
$metadata,
|
|
1469
1487
|
});
|
|
1470
1488
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1471
1489
|
}
|
|
@@ -1495,8 +1513,7 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
|
|
|
1495
1513
|
body: await parseBody(output.body, context),
|
|
1496
1514
|
};
|
|
1497
1515
|
let response;
|
|
1498
|
-
|
|
1499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1517
|
switch (errorCode) {
|
|
1501
1518
|
case "AccessDeniedException":
|
|
1502
1519
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1509,10 +1526,12 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
|
|
|
1509
1526
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1510
1527
|
default:
|
|
1511
1528
|
const parsedBody = parsedOutput.body;
|
|
1529
|
+
const $metadata = deserializeMetadata(output);
|
|
1530
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1512
1531
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1532
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1514
1533
|
$fault: "client",
|
|
1515
|
-
$metadata
|
|
1534
|
+
$metadata,
|
|
1516
1535
|
});
|
|
1517
1536
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1518
1537
|
}
|
|
@@ -1542,8 +1561,7 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
|
|
|
1542
1561
|
body: await parseBody(output.body, context),
|
|
1543
1562
|
};
|
|
1544
1563
|
let response;
|
|
1545
|
-
|
|
1546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1565
|
switch (errorCode) {
|
|
1548
1566
|
case "AccessDeniedException":
|
|
1549
1567
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1556,10 +1574,12 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
|
|
|
1556
1574
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1557
1575
|
default:
|
|
1558
1576
|
const parsedBody = parsedOutput.body;
|
|
1577
|
+
const $metadata = deserializeMetadata(output);
|
|
1578
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1559
1579
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1580
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1561
1581
|
$fault: "client",
|
|
1562
|
-
$metadata
|
|
1582
|
+
$metadata,
|
|
1563
1583
|
});
|
|
1564
1584
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1565
1585
|
}
|
|
@@ -1589,8 +1609,7 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
|
|
|
1589
1609
|
body: await parseBody(output.body, context),
|
|
1590
1610
|
};
|
|
1591
1611
|
let response;
|
|
1592
|
-
|
|
1593
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1613
|
switch (errorCode) {
|
|
1595
1614
|
case "AccessDeniedException":
|
|
1596
1615
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1600,10 +1619,12 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
|
|
|
1600
1619
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1601
1620
|
default:
|
|
1602
1621
|
const parsedBody = parsedOutput.body;
|
|
1622
|
+
const $metadata = deserializeMetadata(output);
|
|
1623
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1603
1624
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1625
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1605
1626
|
$fault: "client",
|
|
1606
|
-
$metadata
|
|
1627
|
+
$metadata,
|
|
1607
1628
|
});
|
|
1608
1629
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1630
|
}
|
|
@@ -1633,8 +1654,7 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
|
|
|
1633
1654
|
body: await parseBody(output.body, context),
|
|
1634
1655
|
};
|
|
1635
1656
|
let response;
|
|
1636
|
-
|
|
1637
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
1658
|
switch (errorCode) {
|
|
1639
1659
|
case "AccessDeniedException":
|
|
1640
1660
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1647,10 +1667,12 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
|
|
|
1647
1667
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1648
1668
|
default:
|
|
1649
1669
|
const parsedBody = parsedOutput.body;
|
|
1670
|
+
const $metadata = deserializeMetadata(output);
|
|
1671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1650
1672
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1651
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1652
1674
|
$fault: "client",
|
|
1653
|
-
$metadata
|
|
1675
|
+
$metadata,
|
|
1654
1676
|
});
|
|
1655
1677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1656
1678
|
}
|
|
@@ -1676,8 +1698,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1676
1698
|
body: await parseBody(output.body, context),
|
|
1677
1699
|
};
|
|
1678
1700
|
let response;
|
|
1679
|
-
|
|
1680
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1681
1702
|
switch (errorCode) {
|
|
1682
1703
|
case "InternalServerException":
|
|
1683
1704
|
case "com.amazonaws.ivs#InternalServerException":
|
|
@@ -1690,10 +1711,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1690
1711
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1691
1712
|
default:
|
|
1692
1713
|
const parsedBody = parsedOutput.body;
|
|
1714
|
+
const $metadata = deserializeMetadata(output);
|
|
1715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1693
1716
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1695
1718
|
$fault: "client",
|
|
1696
|
-
$metadata
|
|
1719
|
+
$metadata,
|
|
1697
1720
|
});
|
|
1698
1721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1722
|
}
|
|
@@ -1715,8 +1738,7 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
|
|
|
1715
1738
|
body: await parseBody(output.body, context),
|
|
1716
1739
|
};
|
|
1717
1740
|
let response;
|
|
1718
|
-
|
|
1719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
1742
|
switch (errorCode) {
|
|
1721
1743
|
case "AccessDeniedException":
|
|
1722
1744
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1735,10 +1757,12 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
|
|
|
1735
1757
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1736
1758
|
default:
|
|
1737
1759
|
const parsedBody = parsedOutput.body;
|
|
1760
|
+
const $metadata = deserializeMetadata(output);
|
|
1761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1738
1762
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1740
1764
|
$fault: "client",
|
|
1741
|
-
$metadata
|
|
1765
|
+
$metadata,
|
|
1742
1766
|
});
|
|
1743
1767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1744
1768
|
}
|
|
@@ -1760,8 +1784,7 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
|
|
|
1760
1784
|
body: await parseBody(output.body, context),
|
|
1761
1785
|
};
|
|
1762
1786
|
let response;
|
|
1763
|
-
|
|
1764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1788
|
switch (errorCode) {
|
|
1766
1789
|
case "AccessDeniedException":
|
|
1767
1790
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1780,10 +1803,12 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
|
|
|
1780
1803
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1781
1804
|
default:
|
|
1782
1805
|
const parsedBody = parsedOutput.body;
|
|
1806
|
+
const $metadata = deserializeMetadata(output);
|
|
1807
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1783
1808
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1784
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1809
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1785
1810
|
$fault: "client",
|
|
1786
|
-
$metadata
|
|
1811
|
+
$metadata,
|
|
1787
1812
|
});
|
|
1788
1813
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1789
1814
|
}
|
|
@@ -1805,8 +1830,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1805
1830
|
body: await parseBody(output.body, context),
|
|
1806
1831
|
};
|
|
1807
1832
|
let response;
|
|
1808
|
-
|
|
1809
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1810
1834
|
switch (errorCode) {
|
|
1811
1835
|
case "InternalServerException":
|
|
1812
1836
|
case "com.amazonaws.ivs#InternalServerException":
|
|
@@ -1819,10 +1843,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1819
1843
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1820
1844
|
default:
|
|
1821
1845
|
const parsedBody = parsedOutput.body;
|
|
1846
|
+
const $metadata = deserializeMetadata(output);
|
|
1847
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1822
1848
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1823
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1849
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1824
1850
|
$fault: "client",
|
|
1825
|
-
$metadata
|
|
1851
|
+
$metadata,
|
|
1826
1852
|
});
|
|
1827
1853
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1828
1854
|
}
|
|
@@ -1844,8 +1870,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1844
1870
|
body: await parseBody(output.body, context),
|
|
1845
1871
|
};
|
|
1846
1872
|
let response;
|
|
1847
|
-
|
|
1848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
1874
|
switch (errorCode) {
|
|
1850
1875
|
case "InternalServerException":
|
|
1851
1876
|
case "com.amazonaws.ivs#InternalServerException":
|
|
@@ -1858,10 +1883,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1858
1883
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1859
1884
|
default:
|
|
1860
1885
|
const parsedBody = parsedOutput.body;
|
|
1886
|
+
const $metadata = deserializeMetadata(output);
|
|
1887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1861
1888
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1863
1890
|
$fault: "client",
|
|
1864
|
-
$metadata
|
|
1891
|
+
$metadata,
|
|
1865
1892
|
});
|
|
1866
1893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1867
1894
|
}
|
|
@@ -1887,8 +1914,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
1887
1914
|
body: await parseBody(output.body, context),
|
|
1888
1915
|
};
|
|
1889
1916
|
let response;
|
|
1890
|
-
|
|
1891
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
1918
|
switch (errorCode) {
|
|
1893
1919
|
case "AccessDeniedException":
|
|
1894
1920
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1907,10 +1933,12 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
1907
1933
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1908
1934
|
default:
|
|
1909
1935
|
const parsedBody = parsedOutput.body;
|
|
1936
|
+
const $metadata = deserializeMetadata(output);
|
|
1937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1910
1938
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1912
1940
|
$fault: "client",
|
|
1913
|
-
$metadata
|
|
1941
|
+
$metadata,
|
|
1914
1942
|
});
|
|
1915
1943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1916
1944
|
}
|
|
@@ -2477,5 +2505,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2477
2505
|
if (data["__type"] !== undefined) {
|
|
2478
2506
|
return sanitizeErrorCode(data["__type"]);
|
|
2479
2507
|
}
|
|
2480
|
-
return "";
|
|
2481
2508
|
};
|