@aws-sdk/client-chime 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 +950 -761
- package/dist-es/protocols/Aws_restJson1.js +950 -761
- package/package.json +6 -6
|
@@ -6519,8 +6519,7 @@ const deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommandErro
|
|
|
6519
6519
|
body: await parseBody(output.body, context),
|
|
6520
6520
|
};
|
|
6521
6521
|
let response;
|
|
6522
|
-
|
|
6523
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6522
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6524
6523
|
switch (errorCode) {
|
|
6525
6524
|
case "AccessDeniedException":
|
|
6526
6525
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -6548,10 +6547,12 @@ const deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommandErro
|
|
|
6548
6547
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6549
6548
|
default:
|
|
6550
6549
|
const parsedBody = parsedOutput.body;
|
|
6550
|
+
const $metadata = deserializeMetadata(output);
|
|
6551
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6551
6552
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6552
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6553
6554
|
$fault: "client",
|
|
6554
|
-
$metadata
|
|
6555
|
+
$metadata,
|
|
6555
6556
|
});
|
|
6556
6557
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6557
6558
|
}
|
|
@@ -6577,8 +6578,7 @@ const deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupComman
|
|
|
6577
6578
|
body: await parseBody(output.body, context),
|
|
6578
6579
|
};
|
|
6579
6580
|
let response;
|
|
6580
|
-
|
|
6581
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6582
6582
|
switch (errorCode) {
|
|
6583
6583
|
case "AccessDeniedException":
|
|
6584
6584
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -6606,10 +6606,12 @@ const deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupComman
|
|
|
6606
6606
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6607
6607
|
default:
|
|
6608
6608
|
const parsedBody = parsedOutput.body;
|
|
6609
|
+
const $metadata = deserializeMetadata(output);
|
|
6610
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6609
6611
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6610
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6611
6613
|
$fault: "client",
|
|
6612
|
-
$metadata
|
|
6614
|
+
$metadata,
|
|
6613
6615
|
});
|
|
6614
6616
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6615
6617
|
}
|
|
@@ -6631,8 +6633,7 @@ const deserializeAws_restJson1AssociatePhoneNumberWithUserCommandError = async (
|
|
|
6631
6633
|
body: await parseBody(output.body, context),
|
|
6632
6634
|
};
|
|
6633
6635
|
let response;
|
|
6634
|
-
|
|
6635
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6636
6637
|
switch (errorCode) {
|
|
6637
6638
|
case "AccessDeniedException":
|
|
6638
6639
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -6660,10 +6661,12 @@ const deserializeAws_restJson1AssociatePhoneNumberWithUserCommandError = async (
|
|
|
6660
6661
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6661
6662
|
default:
|
|
6662
6663
|
const parsedBody = parsedOutput.body;
|
|
6664
|
+
const $metadata = deserializeMetadata(output);
|
|
6665
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6663
6666
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6667
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6665
6668
|
$fault: "client",
|
|
6666
|
-
$metadata
|
|
6669
|
+
$metadata,
|
|
6667
6670
|
});
|
|
6668
6671
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6669
6672
|
}
|
|
@@ -6685,8 +6688,7 @@ const deserializeAws_restJson1AssociateSigninDelegateGroupsWithAccountCommandErr
|
|
|
6685
6688
|
body: await parseBody(output.body, context),
|
|
6686
6689
|
};
|
|
6687
6690
|
let response;
|
|
6688
|
-
|
|
6689
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6690
6692
|
switch (errorCode) {
|
|
6691
6693
|
case "BadRequestException":
|
|
6692
6694
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -6711,10 +6713,12 @@ const deserializeAws_restJson1AssociateSigninDelegateGroupsWithAccountCommandErr
|
|
|
6711
6713
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6712
6714
|
default:
|
|
6713
6715
|
const parsedBody = parsedOutput.body;
|
|
6716
|
+
const $metadata = deserializeMetadata(output);
|
|
6717
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6714
6718
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6719
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6716
6720
|
$fault: "client",
|
|
6717
|
-
$metadata
|
|
6721
|
+
$metadata,
|
|
6718
6722
|
});
|
|
6719
6723
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6720
6724
|
}
|
|
@@ -6744,8 +6748,7 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
6744
6748
|
body: await parseBody(output.body, context),
|
|
6745
6749
|
};
|
|
6746
6750
|
let response;
|
|
6747
|
-
|
|
6748
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6749
6752
|
switch (errorCode) {
|
|
6750
6753
|
case "BadRequestException":
|
|
6751
6754
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -6773,10 +6776,12 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
6773
6776
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6774
6777
|
default:
|
|
6775
6778
|
const parsedBody = parsedOutput.body;
|
|
6779
|
+
const $metadata = deserializeMetadata(output);
|
|
6780
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6776
6781
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6782
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6778
6783
|
$fault: "client",
|
|
6779
|
-
$metadata
|
|
6784
|
+
$metadata,
|
|
6780
6785
|
});
|
|
6781
6786
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6782
6787
|
}
|
|
@@ -6806,8 +6811,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
6806
6811
|
body: await parseBody(output.body, context),
|
|
6807
6812
|
};
|
|
6808
6813
|
let response;
|
|
6809
|
-
|
|
6810
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6811
6815
|
switch (errorCode) {
|
|
6812
6816
|
case "BadRequestException":
|
|
6813
6817
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -6829,10 +6833,12 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
6829
6833
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6830
6834
|
default:
|
|
6831
6835
|
const parsedBody = parsedOutput.body;
|
|
6836
|
+
const $metadata = deserializeMetadata(output);
|
|
6837
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6832
6838
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6833
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6839
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6834
6840
|
$fault: "client",
|
|
6835
|
-
$metadata
|
|
6841
|
+
$metadata,
|
|
6836
6842
|
});
|
|
6837
6843
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6838
6844
|
}
|
|
@@ -6858,8 +6864,7 @@ const deserializeAws_restJson1BatchCreateRoomMembershipCommandError = async (out
|
|
|
6858
6864
|
body: await parseBody(output.body, context),
|
|
6859
6865
|
};
|
|
6860
6866
|
let response;
|
|
6861
|
-
|
|
6862
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6863
6868
|
switch (errorCode) {
|
|
6864
6869
|
case "BadRequestException":
|
|
6865
6870
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -6884,10 +6889,12 @@ const deserializeAws_restJson1BatchCreateRoomMembershipCommandError = async (out
|
|
|
6884
6889
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6885
6890
|
default:
|
|
6886
6891
|
const parsedBody = parsedOutput.body;
|
|
6892
|
+
const $metadata = deserializeMetadata(output);
|
|
6893
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6887
6894
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6889
6896
|
$fault: "client",
|
|
6890
|
-
$metadata
|
|
6897
|
+
$metadata,
|
|
6891
6898
|
});
|
|
6892
6899
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6893
6900
|
}
|
|
@@ -6913,8 +6920,7 @@ const deserializeAws_restJson1BatchDeletePhoneNumberCommandError = async (output
|
|
|
6913
6920
|
body: await parseBody(output.body, context),
|
|
6914
6921
|
};
|
|
6915
6922
|
let response;
|
|
6916
|
-
|
|
6917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6918
6924
|
switch (errorCode) {
|
|
6919
6925
|
case "BadRequestException":
|
|
6920
6926
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -6939,10 +6945,12 @@ const deserializeAws_restJson1BatchDeletePhoneNumberCommandError = async (output
|
|
|
6939
6945
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6940
6946
|
default:
|
|
6941
6947
|
const parsedBody = parsedOutput.body;
|
|
6948
|
+
const $metadata = deserializeMetadata(output);
|
|
6949
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6942
6950
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6943
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6951
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6944
6952
|
$fault: "client",
|
|
6945
|
-
$metadata
|
|
6953
|
+
$metadata,
|
|
6946
6954
|
});
|
|
6947
6955
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6948
6956
|
}
|
|
@@ -6968,8 +6976,7 @@ const deserializeAws_restJson1BatchSuspendUserCommandError = async (output, cont
|
|
|
6968
6976
|
body: await parseBody(output.body, context),
|
|
6969
6977
|
};
|
|
6970
6978
|
let response;
|
|
6971
|
-
|
|
6972
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6973
6980
|
switch (errorCode) {
|
|
6974
6981
|
case "BadRequestException":
|
|
6975
6982
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -6994,10 +7001,12 @@ const deserializeAws_restJson1BatchSuspendUserCommandError = async (output, cont
|
|
|
6994
7001
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6995
7002
|
default:
|
|
6996
7003
|
const parsedBody = parsedOutput.body;
|
|
7004
|
+
const $metadata = deserializeMetadata(output);
|
|
7005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6997
7006
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
6998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6999
7008
|
$fault: "client",
|
|
7000
|
-
$metadata
|
|
7009
|
+
$metadata,
|
|
7001
7010
|
});
|
|
7002
7011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7003
7012
|
}
|
|
@@ -7023,8 +7032,7 @@ const deserializeAws_restJson1BatchUnsuspendUserCommandError = async (output, co
|
|
|
7023
7032
|
body: await parseBody(output.body, context),
|
|
7024
7033
|
};
|
|
7025
7034
|
let response;
|
|
7026
|
-
|
|
7027
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7028
7036
|
switch (errorCode) {
|
|
7029
7037
|
case "BadRequestException":
|
|
7030
7038
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7049,10 +7057,12 @@ const deserializeAws_restJson1BatchUnsuspendUserCommandError = async (output, co
|
|
|
7049
7057
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7050
7058
|
default:
|
|
7051
7059
|
const parsedBody = parsedOutput.body;
|
|
7060
|
+
const $metadata = deserializeMetadata(output);
|
|
7061
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7052
7062
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7053
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7063
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7054
7064
|
$fault: "client",
|
|
7055
|
-
$metadata
|
|
7065
|
+
$metadata,
|
|
7056
7066
|
});
|
|
7057
7067
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7058
7068
|
}
|
|
@@ -7078,8 +7088,7 @@ const deserializeAws_restJson1BatchUpdatePhoneNumberCommandError = async (output
|
|
|
7078
7088
|
body: await parseBody(output.body, context),
|
|
7079
7089
|
};
|
|
7080
7090
|
let response;
|
|
7081
|
-
|
|
7082
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7083
7092
|
switch (errorCode) {
|
|
7084
7093
|
case "BadRequestException":
|
|
7085
7094
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7104,10 +7113,12 @@ const deserializeAws_restJson1BatchUpdatePhoneNumberCommandError = async (output
|
|
|
7104
7113
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7105
7114
|
default:
|
|
7106
7115
|
const parsedBody = parsedOutput.body;
|
|
7116
|
+
const $metadata = deserializeMetadata(output);
|
|
7117
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7107
7118
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7108
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7109
7120
|
$fault: "client",
|
|
7110
|
-
$metadata
|
|
7121
|
+
$metadata,
|
|
7111
7122
|
});
|
|
7112
7123
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7113
7124
|
}
|
|
@@ -7133,8 +7144,7 @@ const deserializeAws_restJson1BatchUpdateUserCommandError = async (output, conte
|
|
|
7133
7144
|
body: await parseBody(output.body, context),
|
|
7134
7145
|
};
|
|
7135
7146
|
let response;
|
|
7136
|
-
|
|
7137
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7138
7148
|
switch (errorCode) {
|
|
7139
7149
|
case "BadRequestException":
|
|
7140
7150
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7159,10 +7169,12 @@ const deserializeAws_restJson1BatchUpdateUserCommandError = async (output, conte
|
|
|
7159
7169
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7160
7170
|
default:
|
|
7161
7171
|
const parsedBody = parsedOutput.body;
|
|
7172
|
+
const $metadata = deserializeMetadata(output);
|
|
7173
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7162
7174
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7163
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7164
7176
|
$fault: "client",
|
|
7165
|
-
$metadata
|
|
7177
|
+
$metadata,
|
|
7166
7178
|
});
|
|
7167
7179
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7168
7180
|
}
|
|
@@ -7188,8 +7200,7 @@ const deserializeAws_restJson1CreateAccountCommandError = async (output, context
|
|
|
7188
7200
|
body: await parseBody(output.body, context),
|
|
7189
7201
|
};
|
|
7190
7202
|
let response;
|
|
7191
|
-
|
|
7192
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7193
7204
|
switch (errorCode) {
|
|
7194
7205
|
case "BadRequestException":
|
|
7195
7206
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7214,10 +7225,12 @@ const deserializeAws_restJson1CreateAccountCommandError = async (output, context
|
|
|
7214
7225
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7215
7226
|
default:
|
|
7216
7227
|
const parsedBody = parsedOutput.body;
|
|
7228
|
+
const $metadata = deserializeMetadata(output);
|
|
7229
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7217
7230
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7218
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7231
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7219
7232
|
$fault: "client",
|
|
7220
|
-
$metadata
|
|
7233
|
+
$metadata,
|
|
7221
7234
|
});
|
|
7222
7235
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7223
7236
|
}
|
|
@@ -7243,8 +7256,7 @@ const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, con
|
|
|
7243
7256
|
body: await parseBody(output.body, context),
|
|
7244
7257
|
};
|
|
7245
7258
|
let response;
|
|
7246
|
-
|
|
7247
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7259
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7248
7260
|
switch (errorCode) {
|
|
7249
7261
|
case "BadRequestException":
|
|
7250
7262
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7272,10 +7284,12 @@ const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, con
|
|
|
7272
7284
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7273
7285
|
default:
|
|
7274
7286
|
const parsedBody = parsedOutput.body;
|
|
7287
|
+
const $metadata = deserializeMetadata(output);
|
|
7288
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7275
7289
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7276
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7290
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7277
7291
|
$fault: "client",
|
|
7278
|
-
$metadata
|
|
7292
|
+
$metadata,
|
|
7279
7293
|
});
|
|
7280
7294
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7281
7295
|
}
|
|
@@ -7305,8 +7319,7 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
7305
7319
|
body: await parseBody(output.body, context),
|
|
7306
7320
|
};
|
|
7307
7321
|
let response;
|
|
7308
|
-
|
|
7309
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7310
7323
|
switch (errorCode) {
|
|
7311
7324
|
case "BadRequestException":
|
|
7312
7325
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7334,10 +7347,12 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
7334
7347
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7335
7348
|
default:
|
|
7336
7349
|
const parsedBody = parsedOutput.body;
|
|
7350
|
+
const $metadata = deserializeMetadata(output);
|
|
7351
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7337
7352
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7338
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7353
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7339
7354
|
$fault: "client",
|
|
7340
|
-
$metadata
|
|
7355
|
+
$metadata,
|
|
7341
7356
|
});
|
|
7342
7357
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7343
7358
|
}
|
|
@@ -7363,8 +7378,7 @@ const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output,
|
|
|
7363
7378
|
body: await parseBody(output.body, context),
|
|
7364
7379
|
};
|
|
7365
7380
|
let response;
|
|
7366
|
-
|
|
7367
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7381
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7368
7382
|
switch (errorCode) {
|
|
7369
7383
|
case "BadRequestException":
|
|
7370
7384
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7392,10 +7406,12 @@ const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output,
|
|
|
7392
7406
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7393
7407
|
default:
|
|
7394
7408
|
const parsedBody = parsedOutput.body;
|
|
7409
|
+
const $metadata = deserializeMetadata(output);
|
|
7410
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7395
7411
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7412
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7397
7413
|
$fault: "client",
|
|
7398
|
-
$metadata
|
|
7414
|
+
$metadata,
|
|
7399
7415
|
});
|
|
7400
7416
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7401
7417
|
}
|
|
@@ -7421,8 +7437,7 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
7421
7437
|
body: await parseBody(output.body, context),
|
|
7422
7438
|
};
|
|
7423
7439
|
let response;
|
|
7424
|
-
|
|
7425
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7426
7441
|
switch (errorCode) {
|
|
7427
7442
|
case "BadRequestException":
|
|
7428
7443
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7450,10 +7465,12 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
7450
7465
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7451
7466
|
default:
|
|
7452
7467
|
const parsedBody = parsedOutput.body;
|
|
7468
|
+
const $metadata = deserializeMetadata(output);
|
|
7469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7453
7470
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7455
7472
|
$fault: "client",
|
|
7456
|
-
$metadata
|
|
7473
|
+
$metadata,
|
|
7457
7474
|
});
|
|
7458
7475
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7459
7476
|
}
|
|
@@ -7479,8 +7496,7 @@ const deserializeAws_restJson1CreateBotCommandError = async (output, context) =>
|
|
|
7479
7496
|
body: await parseBody(output.body, context),
|
|
7480
7497
|
};
|
|
7481
7498
|
let response;
|
|
7482
|
-
|
|
7483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7499
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7484
7500
|
switch (errorCode) {
|
|
7485
7501
|
case "BadRequestException":
|
|
7486
7502
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7508,10 +7524,12 @@ const deserializeAws_restJson1CreateBotCommandError = async (output, context) =>
|
|
|
7508
7524
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7509
7525
|
default:
|
|
7510
7526
|
const parsedBody = parsedOutput.body;
|
|
7527
|
+
const $metadata = deserializeMetadata(output);
|
|
7528
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7511
7529
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7512
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7513
7531
|
$fault: "client",
|
|
7514
|
-
$metadata
|
|
7532
|
+
$metadata,
|
|
7515
7533
|
});
|
|
7516
7534
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7517
7535
|
}
|
|
@@ -7537,8 +7555,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
7537
7555
|
body: await parseBody(output.body, context),
|
|
7538
7556
|
};
|
|
7539
7557
|
let response;
|
|
7540
|
-
|
|
7541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7542
7559
|
switch (errorCode) {
|
|
7543
7560
|
case "BadRequestException":
|
|
7544
7561
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7566,10 +7583,12 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
7566
7583
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7567
7584
|
default:
|
|
7568
7585
|
const parsedBody = parsedOutput.body;
|
|
7586
|
+
const $metadata = deserializeMetadata(output);
|
|
7587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7569
7588
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7570
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7571
7590
|
$fault: "client",
|
|
7572
|
-
$metadata
|
|
7591
|
+
$metadata,
|
|
7573
7592
|
});
|
|
7574
7593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7575
7594
|
}
|
|
@@ -7599,8 +7618,7 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
7599
7618
|
body: await parseBody(output.body, context),
|
|
7600
7619
|
};
|
|
7601
7620
|
let response;
|
|
7602
|
-
|
|
7603
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7604
7622
|
switch (errorCode) {
|
|
7605
7623
|
case "BadRequestException":
|
|
7606
7624
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7628,10 +7646,12 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
7628
7646
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7629
7647
|
default:
|
|
7630
7648
|
const parsedBody = parsedOutput.body;
|
|
7649
|
+
const $metadata = deserializeMetadata(output);
|
|
7650
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7631
7651
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7632
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7652
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7633
7653
|
$fault: "client",
|
|
7634
|
-
$metadata
|
|
7654
|
+
$metadata,
|
|
7635
7655
|
});
|
|
7636
7656
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7637
7657
|
}
|
|
@@ -7661,8 +7681,7 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
7661
7681
|
body: await parseBody(output.body, context),
|
|
7662
7682
|
};
|
|
7663
7683
|
let response;
|
|
7664
|
-
|
|
7665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7684
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7666
7685
|
switch (errorCode) {
|
|
7667
7686
|
case "BadRequestException":
|
|
7668
7687
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7690,10 +7709,12 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
7690
7709
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7691
7710
|
default:
|
|
7692
7711
|
const parsedBody = parsedOutput.body;
|
|
7712
|
+
const $metadata = deserializeMetadata(output);
|
|
7713
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7693
7714
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7715
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7695
7716
|
$fault: "client",
|
|
7696
|
-
$metadata
|
|
7717
|
+
$metadata,
|
|
7697
7718
|
});
|
|
7698
7719
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7699
7720
|
}
|
|
@@ -7723,8 +7744,7 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
7723
7744
|
body: await parseBody(output.body, context),
|
|
7724
7745
|
};
|
|
7725
7746
|
let response;
|
|
7726
|
-
|
|
7727
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7728
7748
|
switch (errorCode) {
|
|
7729
7749
|
case "BadRequestException":
|
|
7730
7750
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7752,10 +7772,12 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
7752
7772
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7753
7773
|
default:
|
|
7754
7774
|
const parsedBody = parsedOutput.body;
|
|
7775
|
+
const $metadata = deserializeMetadata(output);
|
|
7776
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7755
7777
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7778
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7757
7779
|
$fault: "client",
|
|
7758
|
-
$metadata
|
|
7780
|
+
$metadata,
|
|
7759
7781
|
});
|
|
7760
7782
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7761
7783
|
}
|
|
@@ -7781,8 +7803,7 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (ou
|
|
|
7781
7803
|
body: await parseBody(output.body, context),
|
|
7782
7804
|
};
|
|
7783
7805
|
let response;
|
|
7784
|
-
|
|
7785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7806
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7786
7807
|
switch (errorCode) {
|
|
7787
7808
|
case "BadRequestException":
|
|
7788
7809
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7807,10 +7828,12 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (ou
|
|
|
7807
7828
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7808
7829
|
default:
|
|
7809
7830
|
const parsedBody = parsedOutput.body;
|
|
7831
|
+
const $metadata = deserializeMetadata(output);
|
|
7832
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7810
7833
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7834
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7812
7835
|
$fault: "client",
|
|
7813
|
-
$metadata
|
|
7836
|
+
$metadata,
|
|
7814
7837
|
});
|
|
7815
7838
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7816
7839
|
}
|
|
@@ -7836,8 +7859,7 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
7836
7859
|
body: await parseBody(output.body, context),
|
|
7837
7860
|
};
|
|
7838
7861
|
let response;
|
|
7839
|
-
|
|
7840
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7841
7863
|
switch (errorCode) {
|
|
7842
7864
|
case "BadRequestException":
|
|
7843
7865
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7862,10 +7884,12 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
7862
7884
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7863
7885
|
default:
|
|
7864
7886
|
const parsedBody = parsedOutput.body;
|
|
7887
|
+
const $metadata = deserializeMetadata(output);
|
|
7888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7865
7889
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7867
7891
|
$fault: "client",
|
|
7868
|
-
$metadata
|
|
7892
|
+
$metadata,
|
|
7869
7893
|
});
|
|
7870
7894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7871
7895
|
}
|
|
@@ -7891,8 +7915,7 @@ const deserializeAws_restJson1CreateMeetingDialOutCommandError = async (output,
|
|
|
7891
7915
|
body: await parseBody(output.body, context),
|
|
7892
7916
|
};
|
|
7893
7917
|
let response;
|
|
7894
|
-
|
|
7895
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7896
7919
|
switch (errorCode) {
|
|
7897
7920
|
case "AccessDeniedException":
|
|
7898
7921
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -7920,10 +7943,12 @@ const deserializeAws_restJson1CreateMeetingDialOutCommandError = async (output,
|
|
|
7920
7943
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7921
7944
|
default:
|
|
7922
7945
|
const parsedBody = parsedOutput.body;
|
|
7946
|
+
const $metadata = deserializeMetadata(output);
|
|
7947
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7923
7948
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7924
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7949
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7925
7950
|
$fault: "client",
|
|
7926
|
-
$metadata
|
|
7951
|
+
$metadata,
|
|
7927
7952
|
});
|
|
7928
7953
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7929
7954
|
}
|
|
@@ -7957,8 +7982,7 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
7957
7982
|
body: await parseBody(output.body, context),
|
|
7958
7983
|
};
|
|
7959
7984
|
let response;
|
|
7960
|
-
|
|
7961
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7962
7986
|
switch (errorCode) {
|
|
7963
7987
|
case "BadRequestException":
|
|
7964
7988
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -7983,10 +8007,12 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
7983
8007
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
7984
8008
|
default:
|
|
7985
8009
|
const parsedBody = parsedOutput.body;
|
|
8010
|
+
const $metadata = deserializeMetadata(output);
|
|
8011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7986
8012
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
7987
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7988
8014
|
$fault: "client",
|
|
7989
|
-
$metadata
|
|
8015
|
+
$metadata,
|
|
7990
8016
|
});
|
|
7991
8017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7992
8018
|
}
|
|
@@ -8012,8 +8038,7 @@ const deserializeAws_restJson1CreatePhoneNumberOrderCommandError = async (output
|
|
|
8012
8038
|
body: await parseBody(output.body, context),
|
|
8013
8039
|
};
|
|
8014
8040
|
let response;
|
|
8015
|
-
|
|
8016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8017
8042
|
switch (errorCode) {
|
|
8018
8043
|
case "AccessDeniedException":
|
|
8019
8044
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -8041,10 +8066,12 @@ const deserializeAws_restJson1CreatePhoneNumberOrderCommandError = async (output
|
|
|
8041
8066
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8042
8067
|
default:
|
|
8043
8068
|
const parsedBody = parsedOutput.body;
|
|
8069
|
+
const $metadata = deserializeMetadata(output);
|
|
8070
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8044
8071
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8045
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8046
8073
|
$fault: "client",
|
|
8047
|
-
$metadata
|
|
8074
|
+
$metadata,
|
|
8048
8075
|
});
|
|
8049
8076
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8050
8077
|
}
|
|
@@ -8070,8 +8097,7 @@ const deserializeAws_restJson1CreateProxySessionCommandError = async (output, co
|
|
|
8070
8097
|
body: await parseBody(output.body, context),
|
|
8071
8098
|
};
|
|
8072
8099
|
let response;
|
|
8073
|
-
|
|
8074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8100
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8075
8101
|
switch (errorCode) {
|
|
8076
8102
|
case "BadRequestException":
|
|
8077
8103
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8096,10 +8122,12 @@ const deserializeAws_restJson1CreateProxySessionCommandError = async (output, co
|
|
|
8096
8122
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8097
8123
|
default:
|
|
8098
8124
|
const parsedBody = parsedOutput.body;
|
|
8125
|
+
const $metadata = deserializeMetadata(output);
|
|
8126
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8099
8127
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8100
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8101
8129
|
$fault: "client",
|
|
8102
|
-
$metadata
|
|
8130
|
+
$metadata,
|
|
8103
8131
|
});
|
|
8104
8132
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8105
8133
|
}
|
|
@@ -8125,8 +8153,7 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
|
|
|
8125
8153
|
body: await parseBody(output.body, context),
|
|
8126
8154
|
};
|
|
8127
8155
|
let response;
|
|
8128
|
-
|
|
8129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8130
8157
|
switch (errorCode) {
|
|
8131
8158
|
case "BadRequestException":
|
|
8132
8159
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8154,10 +8181,12 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
|
|
|
8154
8181
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8155
8182
|
default:
|
|
8156
8183
|
const parsedBody = parsedOutput.body;
|
|
8184
|
+
const $metadata = deserializeMetadata(output);
|
|
8185
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8157
8186
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8158
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8187
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8159
8188
|
$fault: "client",
|
|
8160
|
-
$metadata
|
|
8189
|
+
$metadata,
|
|
8161
8190
|
});
|
|
8162
8191
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8163
8192
|
}
|
|
@@ -8183,8 +8212,7 @@ const deserializeAws_restJson1CreateRoomMembershipCommandError = async (output,
|
|
|
8183
8212
|
body: await parseBody(output.body, context),
|
|
8184
8213
|
};
|
|
8185
8214
|
let response;
|
|
8186
|
-
|
|
8187
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8188
8216
|
switch (errorCode) {
|
|
8189
8217
|
case "BadRequestException":
|
|
8190
8218
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8215,10 +8243,12 @@ const deserializeAws_restJson1CreateRoomMembershipCommandError = async (output,
|
|
|
8215
8243
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8216
8244
|
default:
|
|
8217
8245
|
const parsedBody = parsedOutput.body;
|
|
8246
|
+
const $metadata = deserializeMetadata(output);
|
|
8247
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8218
8248
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8220
8250
|
$fault: "client",
|
|
8221
|
-
$metadata
|
|
8251
|
+
$metadata,
|
|
8222
8252
|
});
|
|
8223
8253
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8224
8254
|
}
|
|
@@ -8244,8 +8274,7 @@ const deserializeAws_restJson1CreateSipMediaApplicationCommandError = async (out
|
|
|
8244
8274
|
body: await parseBody(output.body, context),
|
|
8245
8275
|
};
|
|
8246
8276
|
let response;
|
|
8247
|
-
|
|
8248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8249
8278
|
switch (errorCode) {
|
|
8250
8279
|
case "AccessDeniedException":
|
|
8251
8280
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -8276,10 +8305,12 @@ const deserializeAws_restJson1CreateSipMediaApplicationCommandError = async (out
|
|
|
8276
8305
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8277
8306
|
default:
|
|
8278
8307
|
const parsedBody = parsedOutput.body;
|
|
8308
|
+
const $metadata = deserializeMetadata(output);
|
|
8309
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8279
8310
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8280
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8281
8312
|
$fault: "client",
|
|
8282
|
-
$metadata
|
|
8313
|
+
$metadata,
|
|
8283
8314
|
});
|
|
8284
8315
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8285
8316
|
}
|
|
@@ -8305,8 +8336,7 @@ const deserializeAws_restJson1CreateSipMediaApplicationCallCommandError = async
|
|
|
8305
8336
|
body: await parseBody(output.body, context),
|
|
8306
8337
|
};
|
|
8307
8338
|
let response;
|
|
8308
|
-
|
|
8309
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8310
8340
|
switch (errorCode) {
|
|
8311
8341
|
case "AccessDeniedException":
|
|
8312
8342
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -8334,10 +8364,12 @@ const deserializeAws_restJson1CreateSipMediaApplicationCallCommandError = async
|
|
|
8334
8364
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8335
8365
|
default:
|
|
8336
8366
|
const parsedBody = parsedOutput.body;
|
|
8367
|
+
const $metadata = deserializeMetadata(output);
|
|
8368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8337
8369
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8338
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8339
8371
|
$fault: "client",
|
|
8340
|
-
$metadata
|
|
8372
|
+
$metadata,
|
|
8341
8373
|
});
|
|
8342
8374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8343
8375
|
}
|
|
@@ -8363,8 +8395,7 @@ const deserializeAws_restJson1CreateSipRuleCommandError = async (output, context
|
|
|
8363
8395
|
body: await parseBody(output.body, context),
|
|
8364
8396
|
};
|
|
8365
8397
|
let response;
|
|
8366
|
-
|
|
8367
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8368
8399
|
switch (errorCode) {
|
|
8369
8400
|
case "AccessDeniedException":
|
|
8370
8401
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -8395,10 +8426,12 @@ const deserializeAws_restJson1CreateSipRuleCommandError = async (output, context
|
|
|
8395
8426
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8396
8427
|
default:
|
|
8397
8428
|
const parsedBody = parsedOutput.body;
|
|
8429
|
+
const $metadata = deserializeMetadata(output);
|
|
8430
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8398
8431
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8399
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8400
8433
|
$fault: "client",
|
|
8401
|
-
$metadata
|
|
8434
|
+
$metadata,
|
|
8402
8435
|
});
|
|
8403
8436
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8404
8437
|
}
|
|
@@ -8424,8 +8457,7 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
8424
8457
|
body: await parseBody(output.body, context),
|
|
8425
8458
|
};
|
|
8426
8459
|
let response;
|
|
8427
|
-
|
|
8428
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8460
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8429
8461
|
switch (errorCode) {
|
|
8430
8462
|
case "BadRequestException":
|
|
8431
8463
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8453,10 +8485,12 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
8453
8485
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8454
8486
|
default:
|
|
8455
8487
|
const parsedBody = parsedOutput.body;
|
|
8488
|
+
const $metadata = deserializeMetadata(output);
|
|
8489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8456
8490
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8457
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8458
8492
|
$fault: "client",
|
|
8459
|
-
$metadata
|
|
8493
|
+
$metadata,
|
|
8460
8494
|
});
|
|
8461
8495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8462
8496
|
}
|
|
@@ -8482,8 +8516,7 @@ const deserializeAws_restJson1CreateVoiceConnectorCommandError = async (output,
|
|
|
8482
8516
|
body: await parseBody(output.body, context),
|
|
8483
8517
|
};
|
|
8484
8518
|
let response;
|
|
8485
|
-
|
|
8486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8487
8520
|
switch (errorCode) {
|
|
8488
8521
|
case "AccessDeniedException":
|
|
8489
8522
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -8511,10 +8544,12 @@ const deserializeAws_restJson1CreateVoiceConnectorCommandError = async (output,
|
|
|
8511
8544
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8512
8545
|
default:
|
|
8513
8546
|
const parsedBody = parsedOutput.body;
|
|
8547
|
+
const $metadata = deserializeMetadata(output);
|
|
8548
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8514
8549
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8515
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8550
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8516
8551
|
$fault: "client",
|
|
8517
|
-
$metadata
|
|
8552
|
+
$metadata,
|
|
8518
8553
|
});
|
|
8519
8554
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8520
8555
|
}
|
|
@@ -8540,8 +8575,7 @@ const deserializeAws_restJson1CreateVoiceConnectorGroupCommandError = async (out
|
|
|
8540
8575
|
body: await parseBody(output.body, context),
|
|
8541
8576
|
};
|
|
8542
8577
|
let response;
|
|
8543
|
-
|
|
8544
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8545
8579
|
switch (errorCode) {
|
|
8546
8580
|
case "AccessDeniedException":
|
|
8547
8581
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -8569,10 +8603,12 @@ const deserializeAws_restJson1CreateVoiceConnectorGroupCommandError = async (out
|
|
|
8569
8603
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8570
8604
|
default:
|
|
8571
8605
|
const parsedBody = parsedOutput.body;
|
|
8606
|
+
const $metadata = deserializeMetadata(output);
|
|
8607
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8572
8608
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8573
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8574
8610
|
$fault: "client",
|
|
8575
|
-
$metadata
|
|
8611
|
+
$metadata,
|
|
8576
8612
|
});
|
|
8577
8613
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8578
8614
|
}
|
|
@@ -8594,8 +8630,7 @@ const deserializeAws_restJson1DeleteAccountCommandError = async (output, context
|
|
|
8594
8630
|
body: await parseBody(output.body, context),
|
|
8595
8631
|
};
|
|
8596
8632
|
let response;
|
|
8597
|
-
|
|
8598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8599
8634
|
switch (errorCode) {
|
|
8600
8635
|
case "BadRequestException":
|
|
8601
8636
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8623,10 +8658,12 @@ const deserializeAws_restJson1DeleteAccountCommandError = async (output, context
|
|
|
8623
8658
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
8624
8659
|
default:
|
|
8625
8660
|
const parsedBody = parsedOutput.body;
|
|
8661
|
+
const $metadata = deserializeMetadata(output);
|
|
8662
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8626
8663
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8627
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8664
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8628
8665
|
$fault: "client",
|
|
8629
|
-
$metadata
|
|
8666
|
+
$metadata,
|
|
8630
8667
|
});
|
|
8631
8668
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8632
8669
|
}
|
|
@@ -8648,8 +8685,7 @@ const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, con
|
|
|
8648
8685
|
body: await parseBody(output.body, context),
|
|
8649
8686
|
};
|
|
8650
8687
|
let response;
|
|
8651
|
-
|
|
8652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8688
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8653
8689
|
switch (errorCode) {
|
|
8654
8690
|
case "BadRequestException":
|
|
8655
8691
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8671,10 +8707,12 @@ const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, con
|
|
|
8671
8707
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8672
8708
|
default:
|
|
8673
8709
|
const parsedBody = parsedOutput.body;
|
|
8710
|
+
const $metadata = deserializeMetadata(output);
|
|
8711
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8674
8712
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8675
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8713
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8676
8714
|
$fault: "client",
|
|
8677
|
-
$metadata
|
|
8715
|
+
$metadata,
|
|
8678
8716
|
});
|
|
8679
8717
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8680
8718
|
}
|
|
@@ -8696,8 +8734,7 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
8696
8734
|
body: await parseBody(output.body, context),
|
|
8697
8735
|
};
|
|
8698
8736
|
let response;
|
|
8699
|
-
|
|
8700
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8701
8738
|
switch (errorCode) {
|
|
8702
8739
|
case "BadRequestException":
|
|
8703
8740
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8722,10 +8759,12 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
8722
8759
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8723
8760
|
default:
|
|
8724
8761
|
const parsedBody = parsedOutput.body;
|
|
8762
|
+
const $metadata = deserializeMetadata(output);
|
|
8763
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8725
8764
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8726
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8765
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8727
8766
|
$fault: "client",
|
|
8728
|
-
$metadata
|
|
8767
|
+
$metadata,
|
|
8729
8768
|
});
|
|
8730
8769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8731
8770
|
}
|
|
@@ -8747,8 +8786,7 @@ const deserializeAws_restJson1DeleteAppInstanceStreamingConfigurationsCommandErr
|
|
|
8747
8786
|
body: await parseBody(output.body, context),
|
|
8748
8787
|
};
|
|
8749
8788
|
let response;
|
|
8750
|
-
|
|
8751
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8752
8790
|
switch (errorCode) {
|
|
8753
8791
|
case "BadRequestException":
|
|
8754
8792
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8773,10 +8811,12 @@ const deserializeAws_restJson1DeleteAppInstanceStreamingConfigurationsCommandErr
|
|
|
8773
8811
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8774
8812
|
default:
|
|
8775
8813
|
const parsedBody = parsedOutput.body;
|
|
8814
|
+
const $metadata = deserializeMetadata(output);
|
|
8815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8776
8816
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8778
8818
|
$fault: "client",
|
|
8779
|
-
$metadata
|
|
8819
|
+
$metadata,
|
|
8780
8820
|
});
|
|
8781
8821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8782
8822
|
}
|
|
@@ -8798,8 +8838,7 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output,
|
|
|
8798
8838
|
body: await parseBody(output.body, context),
|
|
8799
8839
|
};
|
|
8800
8840
|
let response;
|
|
8801
|
-
|
|
8802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8803
8842
|
switch (errorCode) {
|
|
8804
8843
|
case "BadRequestException":
|
|
8805
8844
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8821,10 +8860,12 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output,
|
|
|
8821
8860
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8822
8861
|
default:
|
|
8823
8862
|
const parsedBody = parsedOutput.body;
|
|
8863
|
+
const $metadata = deserializeMetadata(output);
|
|
8864
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8824
8865
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8866
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8826
8867
|
$fault: "client",
|
|
8827
|
-
$metadata
|
|
8868
|
+
$metadata,
|
|
8828
8869
|
});
|
|
8829
8870
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8830
8871
|
}
|
|
@@ -8846,8 +8887,7 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
8846
8887
|
body: await parseBody(output.body, context),
|
|
8847
8888
|
};
|
|
8848
8889
|
let response;
|
|
8849
|
-
|
|
8850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8851
8891
|
switch (errorCode) {
|
|
8852
8892
|
case "BadRequestException":
|
|
8853
8893
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8872,10 +8912,12 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
8872
8912
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8873
8913
|
default:
|
|
8874
8914
|
const parsedBody = parsedOutput.body;
|
|
8915
|
+
const $metadata = deserializeMetadata(output);
|
|
8916
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8875
8917
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8918
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8877
8919
|
$fault: "client",
|
|
8878
|
-
$metadata
|
|
8920
|
+
$metadata,
|
|
8879
8921
|
});
|
|
8880
8922
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8881
8923
|
}
|
|
@@ -8897,8 +8939,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
8897
8939
|
body: await parseBody(output.body, context),
|
|
8898
8940
|
};
|
|
8899
8941
|
let response;
|
|
8900
|
-
|
|
8901
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8942
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8902
8943
|
switch (errorCode) {
|
|
8903
8944
|
case "BadRequestException":
|
|
8904
8945
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8920,10 +8961,12 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
8920
8961
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8921
8962
|
default:
|
|
8922
8963
|
const parsedBody = parsedOutput.body;
|
|
8964
|
+
const $metadata = deserializeMetadata(output);
|
|
8965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8923
8966
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8924
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8925
8968
|
$fault: "client",
|
|
8926
|
-
$metadata
|
|
8969
|
+
$metadata,
|
|
8927
8970
|
});
|
|
8928
8971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8929
8972
|
}
|
|
@@ -8945,8 +8988,7 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
8945
8988
|
body: await parseBody(output.body, context),
|
|
8946
8989
|
};
|
|
8947
8990
|
let response;
|
|
8948
|
-
|
|
8949
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8950
8992
|
switch (errorCode) {
|
|
8951
8993
|
case "BadRequestException":
|
|
8952
8994
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -8968,10 +9010,12 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
8968
9010
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
8969
9011
|
default:
|
|
8970
9012
|
const parsedBody = parsedOutput.body;
|
|
9013
|
+
const $metadata = deserializeMetadata(output);
|
|
9014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8971
9015
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
8972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8973
9017
|
$fault: "client",
|
|
8974
|
-
$metadata
|
|
9018
|
+
$metadata,
|
|
8975
9019
|
});
|
|
8976
9020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8977
9021
|
}
|
|
@@ -8993,8 +9037,7 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
8993
9037
|
body: await parseBody(output.body, context),
|
|
8994
9038
|
};
|
|
8995
9039
|
let response;
|
|
8996
|
-
|
|
8997
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9040
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8998
9041
|
switch (errorCode) {
|
|
8999
9042
|
case "BadRequestException":
|
|
9000
9043
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9019,10 +9062,12 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
9019
9062
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9020
9063
|
default:
|
|
9021
9064
|
const parsedBody = parsedOutput.body;
|
|
9065
|
+
const $metadata = deserializeMetadata(output);
|
|
9066
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9022
9067
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9023
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9024
9069
|
$fault: "client",
|
|
9025
|
-
$metadata
|
|
9070
|
+
$metadata,
|
|
9026
9071
|
});
|
|
9027
9072
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9028
9073
|
}
|
|
@@ -9044,8 +9089,7 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
9044
9089
|
body: await parseBody(output.body, context),
|
|
9045
9090
|
};
|
|
9046
9091
|
let response;
|
|
9047
|
-
|
|
9048
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9092
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9049
9093
|
switch (errorCode) {
|
|
9050
9094
|
case "BadRequestException":
|
|
9051
9095
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9067,10 +9111,12 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
9067
9111
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9068
9112
|
default:
|
|
9069
9113
|
const parsedBody = parsedOutput.body;
|
|
9114
|
+
const $metadata = deserializeMetadata(output);
|
|
9115
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9070
9116
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9071
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9117
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9072
9118
|
$fault: "client",
|
|
9073
|
-
$metadata
|
|
9119
|
+
$metadata,
|
|
9074
9120
|
});
|
|
9075
9121
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9076
9122
|
}
|
|
@@ -9092,8 +9138,7 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
9092
9138
|
body: await parseBody(output.body, context),
|
|
9093
9139
|
};
|
|
9094
9140
|
let response;
|
|
9095
|
-
|
|
9096
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9141
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9097
9142
|
switch (errorCode) {
|
|
9098
9143
|
case "BadRequestException":
|
|
9099
9144
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9115,10 +9160,12 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
9115
9160
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9116
9161
|
default:
|
|
9117
9162
|
const parsedBody = parsedOutput.body;
|
|
9163
|
+
const $metadata = deserializeMetadata(output);
|
|
9164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9118
9165
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9120
9167
|
$fault: "client",
|
|
9121
|
-
$metadata
|
|
9168
|
+
$metadata,
|
|
9122
9169
|
});
|
|
9123
9170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9124
9171
|
}
|
|
@@ -9140,8 +9187,7 @@ const deserializeAws_restJson1DeleteEventsConfigurationCommandError = async (out
|
|
|
9140
9187
|
body: await parseBody(output.body, context),
|
|
9141
9188
|
};
|
|
9142
9189
|
let response;
|
|
9143
|
-
|
|
9144
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9145
9191
|
switch (errorCode) {
|
|
9146
9192
|
case "BadRequestException":
|
|
9147
9193
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9163,10 +9209,12 @@ const deserializeAws_restJson1DeleteEventsConfigurationCommandError = async (out
|
|
|
9163
9209
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9164
9210
|
default:
|
|
9165
9211
|
const parsedBody = parsedOutput.body;
|
|
9212
|
+
const $metadata = deserializeMetadata(output);
|
|
9213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9166
9214
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9167
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9168
9216
|
$fault: "client",
|
|
9169
|
-
$metadata
|
|
9217
|
+
$metadata,
|
|
9170
9218
|
});
|
|
9171
9219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9172
9220
|
}
|
|
@@ -9188,8 +9236,7 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
|
|
|
9188
9236
|
body: await parseBody(output.body, context),
|
|
9189
9237
|
};
|
|
9190
9238
|
let response;
|
|
9191
|
-
|
|
9192
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9193
9240
|
switch (errorCode) {
|
|
9194
9241
|
case "BadRequestException":
|
|
9195
9242
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9214,10 +9261,12 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
|
|
|
9214
9261
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9215
9262
|
default:
|
|
9216
9263
|
const parsedBody = parsedOutput.body;
|
|
9264
|
+
const $metadata = deserializeMetadata(output);
|
|
9265
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9217
9266
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9218
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9267
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9219
9268
|
$fault: "client",
|
|
9220
|
-
$metadata
|
|
9269
|
+
$metadata,
|
|
9221
9270
|
});
|
|
9222
9271
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9223
9272
|
}
|
|
@@ -9239,8 +9288,7 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
9239
9288
|
body: await parseBody(output.body, context),
|
|
9240
9289
|
};
|
|
9241
9290
|
let response;
|
|
9242
|
-
|
|
9243
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9291
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9244
9292
|
switch (errorCode) {
|
|
9245
9293
|
case "BadRequestException":
|
|
9246
9294
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9265,10 +9313,12 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
9265
9313
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9266
9314
|
default:
|
|
9267
9315
|
const parsedBody = parsedOutput.body;
|
|
9316
|
+
const $metadata = deserializeMetadata(output);
|
|
9317
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9268
9318
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9269
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9270
9320
|
$fault: "client",
|
|
9271
|
-
$metadata
|
|
9321
|
+
$metadata,
|
|
9272
9322
|
});
|
|
9273
9323
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9274
9324
|
}
|
|
@@ -9290,8 +9340,7 @@ const deserializeAws_restJson1DeletePhoneNumberCommandError = async (output, con
|
|
|
9290
9340
|
body: await parseBody(output.body, context),
|
|
9291
9341
|
};
|
|
9292
9342
|
let response;
|
|
9293
|
-
|
|
9294
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9295
9344
|
switch (errorCode) {
|
|
9296
9345
|
case "BadRequestException":
|
|
9297
9346
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9316,10 +9365,12 @@ const deserializeAws_restJson1DeletePhoneNumberCommandError = async (output, con
|
|
|
9316
9365
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9317
9366
|
default:
|
|
9318
9367
|
const parsedBody = parsedOutput.body;
|
|
9368
|
+
const $metadata = deserializeMetadata(output);
|
|
9369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9319
9370
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9320
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9321
9372
|
$fault: "client",
|
|
9322
|
-
$metadata
|
|
9373
|
+
$metadata,
|
|
9323
9374
|
});
|
|
9324
9375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9325
9376
|
}
|
|
@@ -9341,8 +9392,7 @@ const deserializeAws_restJson1DeleteProxySessionCommandError = async (output, co
|
|
|
9341
9392
|
body: await parseBody(output.body, context),
|
|
9342
9393
|
};
|
|
9343
9394
|
let response;
|
|
9344
|
-
|
|
9345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9346
9396
|
switch (errorCode) {
|
|
9347
9397
|
case "BadRequestException":
|
|
9348
9398
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9367,10 +9417,12 @@ const deserializeAws_restJson1DeleteProxySessionCommandError = async (output, co
|
|
|
9367
9417
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9368
9418
|
default:
|
|
9369
9419
|
const parsedBody = parsedOutput.body;
|
|
9420
|
+
const $metadata = deserializeMetadata(output);
|
|
9421
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9370
9422
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9371
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9372
9424
|
$fault: "client",
|
|
9373
|
-
$metadata
|
|
9425
|
+
$metadata,
|
|
9374
9426
|
});
|
|
9375
9427
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9376
9428
|
}
|
|
@@ -9392,8 +9444,7 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
|
|
|
9392
9444
|
body: await parseBody(output.body, context),
|
|
9393
9445
|
};
|
|
9394
9446
|
let response;
|
|
9395
|
-
|
|
9396
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9397
9448
|
switch (errorCode) {
|
|
9398
9449
|
case "BadRequestException":
|
|
9399
9450
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9418,10 +9469,12 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
|
|
|
9418
9469
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9419
9470
|
default:
|
|
9420
9471
|
const parsedBody = parsedOutput.body;
|
|
9472
|
+
const $metadata = deserializeMetadata(output);
|
|
9473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9421
9474
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9422
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9423
9476
|
$fault: "client",
|
|
9424
|
-
$metadata
|
|
9477
|
+
$metadata,
|
|
9425
9478
|
});
|
|
9426
9479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9427
9480
|
}
|
|
@@ -9443,8 +9496,7 @@ const deserializeAws_restJson1DeleteRoomMembershipCommandError = async (output,
|
|
|
9443
9496
|
body: await parseBody(output.body, context),
|
|
9444
9497
|
};
|
|
9445
9498
|
let response;
|
|
9446
|
-
|
|
9447
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9499
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9448
9500
|
switch (errorCode) {
|
|
9449
9501
|
case "BadRequestException":
|
|
9450
9502
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9469,10 +9521,12 @@ const deserializeAws_restJson1DeleteRoomMembershipCommandError = async (output,
|
|
|
9469
9521
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9470
9522
|
default:
|
|
9471
9523
|
const parsedBody = parsedOutput.body;
|
|
9524
|
+
const $metadata = deserializeMetadata(output);
|
|
9525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9472
9526
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9473
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9474
9528
|
$fault: "client",
|
|
9475
|
-
$metadata
|
|
9529
|
+
$metadata,
|
|
9476
9530
|
});
|
|
9477
9531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9478
9532
|
}
|
|
@@ -9494,8 +9548,7 @@ const deserializeAws_restJson1DeleteSipMediaApplicationCommandError = async (out
|
|
|
9494
9548
|
body: await parseBody(output.body, context),
|
|
9495
9549
|
};
|
|
9496
9550
|
let response;
|
|
9497
|
-
|
|
9498
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9499
9552
|
switch (errorCode) {
|
|
9500
9553
|
case "BadRequestException":
|
|
9501
9554
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9523,10 +9576,12 @@ const deserializeAws_restJson1DeleteSipMediaApplicationCommandError = async (out
|
|
|
9523
9576
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9524
9577
|
default:
|
|
9525
9578
|
const parsedBody = parsedOutput.body;
|
|
9579
|
+
const $metadata = deserializeMetadata(output);
|
|
9580
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9526
9581
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9527
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9582
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9528
9583
|
$fault: "client",
|
|
9529
|
-
$metadata
|
|
9584
|
+
$metadata,
|
|
9530
9585
|
});
|
|
9531
9586
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9532
9587
|
}
|
|
@@ -9548,8 +9603,7 @@ const deserializeAws_restJson1DeleteSipRuleCommandError = async (output, context
|
|
|
9548
9603
|
body: await parseBody(output.body, context),
|
|
9549
9604
|
};
|
|
9550
9605
|
let response;
|
|
9551
|
-
|
|
9552
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9606
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9553
9607
|
switch (errorCode) {
|
|
9554
9608
|
case "BadRequestException":
|
|
9555
9609
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9577,10 +9631,12 @@ const deserializeAws_restJson1DeleteSipRuleCommandError = async (output, context
|
|
|
9577
9631
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9578
9632
|
default:
|
|
9579
9633
|
const parsedBody = parsedOutput.body;
|
|
9634
|
+
const $metadata = deserializeMetadata(output);
|
|
9635
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9580
9636
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9581
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9582
9638
|
$fault: "client",
|
|
9583
|
-
$metadata
|
|
9639
|
+
$metadata,
|
|
9584
9640
|
});
|
|
9585
9641
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9586
9642
|
}
|
|
@@ -9602,8 +9658,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorCommandError = async (output,
|
|
|
9602
9658
|
body: await parseBody(output.body, context),
|
|
9603
9659
|
};
|
|
9604
9660
|
let response;
|
|
9605
|
-
|
|
9606
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9661
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9607
9662
|
switch (errorCode) {
|
|
9608
9663
|
case "BadRequestException":
|
|
9609
9664
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9631,10 +9686,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorCommandError = async (output,
|
|
|
9631
9686
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9632
9687
|
default:
|
|
9633
9688
|
const parsedBody = parsedOutput.body;
|
|
9689
|
+
const $metadata = deserializeMetadata(output);
|
|
9690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9634
9691
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9635
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9636
9693
|
$fault: "client",
|
|
9637
|
-
$metadata
|
|
9694
|
+
$metadata,
|
|
9638
9695
|
});
|
|
9639
9696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9640
9697
|
}
|
|
@@ -9656,8 +9713,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorEmergencyCallingConfigurationC
|
|
|
9656
9713
|
body: await parseBody(output.body, context),
|
|
9657
9714
|
};
|
|
9658
9715
|
let response;
|
|
9659
|
-
|
|
9660
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9661
9717
|
switch (errorCode) {
|
|
9662
9718
|
case "BadRequestException":
|
|
9663
9719
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9682,10 +9738,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorEmergencyCallingConfigurationC
|
|
|
9682
9738
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9683
9739
|
default:
|
|
9684
9740
|
const parsedBody = parsedOutput.body;
|
|
9741
|
+
const $metadata = deserializeMetadata(output);
|
|
9742
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9685
9743
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9686
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9744
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9687
9745
|
$fault: "client",
|
|
9688
|
-
$metadata
|
|
9746
|
+
$metadata,
|
|
9689
9747
|
});
|
|
9690
9748
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9691
9749
|
}
|
|
@@ -9707,8 +9765,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorGroupCommandError = async (out
|
|
|
9707
9765
|
body: await parseBody(output.body, context),
|
|
9708
9766
|
};
|
|
9709
9767
|
let response;
|
|
9710
|
-
|
|
9711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9712
9769
|
switch (errorCode) {
|
|
9713
9770
|
case "BadRequestException":
|
|
9714
9771
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9736,10 +9793,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorGroupCommandError = async (out
|
|
|
9736
9793
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9737
9794
|
default:
|
|
9738
9795
|
const parsedBody = parsedOutput.body;
|
|
9796
|
+
const $metadata = deserializeMetadata(output);
|
|
9797
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9739
9798
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9740
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9741
9800
|
$fault: "client",
|
|
9742
|
-
$metadata
|
|
9801
|
+
$metadata,
|
|
9743
9802
|
});
|
|
9744
9803
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9745
9804
|
}
|
|
@@ -9761,8 +9820,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorOriginationCommandError = asyn
|
|
|
9761
9820
|
body: await parseBody(output.body, context),
|
|
9762
9821
|
};
|
|
9763
9822
|
let response;
|
|
9764
|
-
|
|
9765
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9766
9824
|
switch (errorCode) {
|
|
9767
9825
|
case "BadRequestException":
|
|
9768
9826
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9787,10 +9845,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorOriginationCommandError = asyn
|
|
|
9787
9845
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9788
9846
|
default:
|
|
9789
9847
|
const parsedBody = parsedOutput.body;
|
|
9848
|
+
const $metadata = deserializeMetadata(output);
|
|
9849
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9790
9850
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9791
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9851
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9792
9852
|
$fault: "client",
|
|
9793
|
-
$metadata
|
|
9853
|
+
$metadata,
|
|
9794
9854
|
});
|
|
9795
9855
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9796
9856
|
}
|
|
@@ -9812,8 +9872,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorProxyCommandError = async (out
|
|
|
9812
9872
|
body: await parseBody(output.body, context),
|
|
9813
9873
|
};
|
|
9814
9874
|
let response;
|
|
9815
|
-
|
|
9816
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9875
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9817
9876
|
switch (errorCode) {
|
|
9818
9877
|
case "BadRequestException":
|
|
9819
9878
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9838,10 +9897,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorProxyCommandError = async (out
|
|
|
9838
9897
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9839
9898
|
default:
|
|
9840
9899
|
const parsedBody = parsedOutput.body;
|
|
9900
|
+
const $metadata = deserializeMetadata(output);
|
|
9901
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9841
9902
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9842
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9903
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9843
9904
|
$fault: "client",
|
|
9844
|
-
$metadata
|
|
9905
|
+
$metadata,
|
|
9845
9906
|
});
|
|
9846
9907
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9847
9908
|
}
|
|
@@ -9863,8 +9924,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorStreamingConfigurationCommandE
|
|
|
9863
9924
|
body: await parseBody(output.body, context),
|
|
9864
9925
|
};
|
|
9865
9926
|
let response;
|
|
9866
|
-
|
|
9867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9927
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9868
9928
|
switch (errorCode) {
|
|
9869
9929
|
case "BadRequestException":
|
|
9870
9930
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9889,10 +9949,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorStreamingConfigurationCommandE
|
|
|
9889
9949
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9890
9950
|
default:
|
|
9891
9951
|
const parsedBody = parsedOutput.body;
|
|
9952
|
+
const $metadata = deserializeMetadata(output);
|
|
9953
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9892
9954
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9955
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9894
9956
|
$fault: "client",
|
|
9895
|
-
$metadata
|
|
9957
|
+
$metadata,
|
|
9896
9958
|
});
|
|
9897
9959
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9898
9960
|
}
|
|
@@ -9914,8 +9976,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorTerminationCommandError = asyn
|
|
|
9914
9976
|
body: await parseBody(output.body, context),
|
|
9915
9977
|
};
|
|
9916
9978
|
let response;
|
|
9917
|
-
|
|
9918
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9919
9980
|
switch (errorCode) {
|
|
9920
9981
|
case "BadRequestException":
|
|
9921
9982
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9940,10 +10001,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorTerminationCommandError = asyn
|
|
|
9940
10001
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9941
10002
|
default:
|
|
9942
10003
|
const parsedBody = parsedOutput.body;
|
|
10004
|
+
const $metadata = deserializeMetadata(output);
|
|
10005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9943
10006
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9945
10008
|
$fault: "client",
|
|
9946
|
-
$metadata
|
|
10009
|
+
$metadata,
|
|
9947
10010
|
});
|
|
9948
10011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9949
10012
|
}
|
|
@@ -9965,8 +10028,7 @@ const deserializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommandE
|
|
|
9965
10028
|
body: await parseBody(output.body, context),
|
|
9966
10029
|
};
|
|
9967
10030
|
let response;
|
|
9968
|
-
|
|
9969
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9970
10032
|
switch (errorCode) {
|
|
9971
10033
|
case "BadRequestException":
|
|
9972
10034
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -9991,10 +10053,12 @@ const deserializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommandE
|
|
|
9991
10053
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
9992
10054
|
default:
|
|
9993
10055
|
const parsedBody = parsedOutput.body;
|
|
10056
|
+
const $metadata = deserializeMetadata(output);
|
|
10057
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9994
10058
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
9995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10059
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9996
10060
|
$fault: "client",
|
|
9997
|
-
$metadata
|
|
10061
|
+
$metadata,
|
|
9998
10062
|
});
|
|
9999
10063
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10000
10064
|
}
|
|
@@ -10020,8 +10084,7 @@ const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, c
|
|
|
10020
10084
|
body: await parseBody(output.body, context),
|
|
10021
10085
|
};
|
|
10022
10086
|
let response;
|
|
10023
|
-
|
|
10024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10025
10088
|
switch (errorCode) {
|
|
10026
10089
|
case "BadRequestException":
|
|
10027
10090
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10043,10 +10106,12 @@ const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, c
|
|
|
10043
10106
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10044
10107
|
default:
|
|
10045
10108
|
const parsedBody = parsedOutput.body;
|
|
10109
|
+
const $metadata = deserializeMetadata(output);
|
|
10110
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10046
10111
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10112
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10048
10113
|
$fault: "client",
|
|
10049
|
-
$metadata
|
|
10114
|
+
$metadata,
|
|
10050
10115
|
});
|
|
10051
10116
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10052
10117
|
}
|
|
@@ -10072,8 +10137,7 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
10072
10137
|
body: await parseBody(output.body, context),
|
|
10073
10138
|
};
|
|
10074
10139
|
let response;
|
|
10075
|
-
|
|
10076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10077
10141
|
switch (errorCode) {
|
|
10078
10142
|
case "BadRequestException":
|
|
10079
10143
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10095,10 +10159,12 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
10095
10159
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10096
10160
|
default:
|
|
10097
10161
|
const parsedBody = parsedOutput.body;
|
|
10162
|
+
const $metadata = deserializeMetadata(output);
|
|
10163
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10098
10164
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10099
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10165
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10100
10166
|
$fault: "client",
|
|
10101
|
-
$metadata
|
|
10167
|
+
$metadata,
|
|
10102
10168
|
});
|
|
10103
10169
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10104
10170
|
}
|
|
@@ -10124,8 +10190,7 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (outpu
|
|
|
10124
10190
|
body: await parseBody(output.body, context),
|
|
10125
10191
|
};
|
|
10126
10192
|
let response;
|
|
10127
|
-
|
|
10128
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10129
10194
|
switch (errorCode) {
|
|
10130
10195
|
case "BadRequestException":
|
|
10131
10196
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10147,10 +10212,12 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (outpu
|
|
|
10147
10212
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10148
10213
|
default:
|
|
10149
10214
|
const parsedBody = parsedOutput.body;
|
|
10215
|
+
const $metadata = deserializeMetadata(output);
|
|
10216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10150
10217
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10151
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10152
10219
|
$fault: "client",
|
|
10153
|
-
$metadata
|
|
10220
|
+
$metadata,
|
|
10154
10221
|
});
|
|
10155
10222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10156
10223
|
}
|
|
@@ -10176,8 +10243,7 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
10176
10243
|
body: await parseBody(output.body, context),
|
|
10177
10244
|
};
|
|
10178
10245
|
let response;
|
|
10179
|
-
|
|
10180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10181
10247
|
switch (errorCode) {
|
|
10182
10248
|
case "BadRequestException":
|
|
10183
10249
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10199,10 +10265,12 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
10199
10265
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10200
10266
|
default:
|
|
10201
10267
|
const parsedBody = parsedOutput.body;
|
|
10268
|
+
const $metadata = deserializeMetadata(output);
|
|
10269
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10202
10270
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10203
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10271
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10204
10272
|
$fault: "client",
|
|
10205
|
-
$metadata
|
|
10273
|
+
$metadata,
|
|
10206
10274
|
});
|
|
10207
10275
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10208
10276
|
}
|
|
@@ -10228,8 +10296,7 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
10228
10296
|
body: await parseBody(output.body, context),
|
|
10229
10297
|
};
|
|
10230
10298
|
let response;
|
|
10231
|
-
|
|
10232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10233
10300
|
switch (errorCode) {
|
|
10234
10301
|
case "BadRequestException":
|
|
10235
10302
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10254,10 +10321,12 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
10254
10321
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10255
10322
|
default:
|
|
10256
10323
|
const parsedBody = parsedOutput.body;
|
|
10324
|
+
const $metadata = deserializeMetadata(output);
|
|
10325
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10257
10326
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10327
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10259
10328
|
$fault: "client",
|
|
10260
|
-
$metadata
|
|
10329
|
+
$metadata,
|
|
10261
10330
|
});
|
|
10262
10331
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10263
10332
|
}
|
|
@@ -10283,8 +10352,7 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
10283
10352
|
body: await parseBody(output.body, context),
|
|
10284
10353
|
};
|
|
10285
10354
|
let response;
|
|
10286
|
-
|
|
10287
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10355
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10288
10356
|
switch (errorCode) {
|
|
10289
10357
|
case "BadRequestException":
|
|
10290
10358
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10309,10 +10377,12 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
10309
10377
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10310
10378
|
default:
|
|
10311
10379
|
const parsedBody = parsedOutput.body;
|
|
10380
|
+
const $metadata = deserializeMetadata(output);
|
|
10381
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10312
10382
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10313
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10314
10384
|
$fault: "client",
|
|
10315
|
-
$metadata
|
|
10385
|
+
$metadata,
|
|
10316
10386
|
});
|
|
10317
10387
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10318
10388
|
}
|
|
@@ -10338,8 +10408,7 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
10338
10408
|
body: await parseBody(output.body, context),
|
|
10339
10409
|
};
|
|
10340
10410
|
let response;
|
|
10341
|
-
|
|
10342
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10343
10412
|
switch (errorCode) {
|
|
10344
10413
|
case "BadRequestException":
|
|
10345
10414
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10361,10 +10430,12 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
10361
10430
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10362
10431
|
default:
|
|
10363
10432
|
const parsedBody = parsedOutput.body;
|
|
10433
|
+
const $metadata = deserializeMetadata(output);
|
|
10434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10364
10435
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10366
10437
|
$fault: "client",
|
|
10367
|
-
$metadata
|
|
10438
|
+
$metadata,
|
|
10368
10439
|
});
|
|
10369
10440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10370
10441
|
}
|
|
@@ -10390,8 +10461,7 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
10390
10461
|
body: await parseBody(output.body, context),
|
|
10391
10462
|
};
|
|
10392
10463
|
let response;
|
|
10393
|
-
|
|
10394
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10395
10465
|
switch (errorCode) {
|
|
10396
10466
|
case "BadRequestException":
|
|
10397
10467
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10413,10 +10483,12 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
10413
10483
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10414
10484
|
default:
|
|
10415
10485
|
const parsedBody = parsedOutput.body;
|
|
10486
|
+
const $metadata = deserializeMetadata(output);
|
|
10487
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10416
10488
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10489
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10418
10490
|
$fault: "client",
|
|
10419
|
-
$metadata
|
|
10491
|
+
$metadata,
|
|
10420
10492
|
});
|
|
10421
10493
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10422
10494
|
}
|
|
@@ -10442,8 +10514,7 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
10442
10514
|
body: await parseBody(output.body, context),
|
|
10443
10515
|
};
|
|
10444
10516
|
let response;
|
|
10445
|
-
|
|
10446
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10517
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10447
10518
|
switch (errorCode) {
|
|
10448
10519
|
case "BadRequestException":
|
|
10449
10520
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10468,10 +10539,12 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
10468
10539
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10469
10540
|
default:
|
|
10470
10541
|
const parsedBody = parsedOutput.body;
|
|
10542
|
+
const $metadata = deserializeMetadata(output);
|
|
10543
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10471
10544
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10472
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10545
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10473
10546
|
$fault: "client",
|
|
10474
|
-
$metadata
|
|
10547
|
+
$metadata,
|
|
10475
10548
|
});
|
|
10476
10549
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10477
10550
|
}
|
|
@@ -10493,8 +10566,7 @@ const deserializeAws_restJson1DisassociatePhoneNumberFromUserCommandError = asyn
|
|
|
10493
10566
|
body: await parseBody(output.body, context),
|
|
10494
10567
|
};
|
|
10495
10568
|
let response;
|
|
10496
|
-
|
|
10497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10498
10570
|
switch (errorCode) {
|
|
10499
10571
|
case "BadRequestException":
|
|
10500
10572
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10519,10 +10591,12 @@ const deserializeAws_restJson1DisassociatePhoneNumberFromUserCommandError = asyn
|
|
|
10519
10591
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10520
10592
|
default:
|
|
10521
10593
|
const parsedBody = parsedOutput.body;
|
|
10594
|
+
const $metadata = deserializeMetadata(output);
|
|
10595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10522
10596
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10524
10598
|
$fault: "client",
|
|
10525
|
-
$metadata
|
|
10599
|
+
$metadata,
|
|
10526
10600
|
});
|
|
10527
10601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10528
10602
|
}
|
|
@@ -10548,8 +10622,7 @@ const deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommandE
|
|
|
10548
10622
|
body: await parseBody(output.body, context),
|
|
10549
10623
|
};
|
|
10550
10624
|
let response;
|
|
10551
|
-
|
|
10552
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10553
10626
|
switch (errorCode) {
|
|
10554
10627
|
case "BadRequestException":
|
|
10555
10628
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10574,10 +10647,12 @@ const deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommandE
|
|
|
10574
10647
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10575
10648
|
default:
|
|
10576
10649
|
const parsedBody = parsedOutput.body;
|
|
10650
|
+
const $metadata = deserializeMetadata(output);
|
|
10651
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10577
10652
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10578
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10653
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10579
10654
|
$fault: "client",
|
|
10580
|
-
$metadata
|
|
10655
|
+
$metadata,
|
|
10581
10656
|
});
|
|
10582
10657
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10583
10658
|
}
|
|
@@ -10603,8 +10678,7 @@ const deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupCom
|
|
|
10603
10678
|
body: await parseBody(output.body, context),
|
|
10604
10679
|
};
|
|
10605
10680
|
let response;
|
|
10606
|
-
|
|
10607
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10681
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10608
10682
|
switch (errorCode) {
|
|
10609
10683
|
case "BadRequestException":
|
|
10610
10684
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10629,10 +10703,12 @@ const deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupCom
|
|
|
10629
10703
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10630
10704
|
default:
|
|
10631
10705
|
const parsedBody = parsedOutput.body;
|
|
10706
|
+
const $metadata = deserializeMetadata(output);
|
|
10707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10632
10708
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10634
10710
|
$fault: "client",
|
|
10635
|
-
$metadata
|
|
10711
|
+
$metadata,
|
|
10636
10712
|
});
|
|
10637
10713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10638
10714
|
}
|
|
@@ -10654,8 +10730,7 @@ const deserializeAws_restJson1DisassociateSigninDelegateGroupsFromAccountCommand
|
|
|
10654
10730
|
body: await parseBody(output.body, context),
|
|
10655
10731
|
};
|
|
10656
10732
|
let response;
|
|
10657
|
-
|
|
10658
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10733
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10659
10734
|
switch (errorCode) {
|
|
10660
10735
|
case "BadRequestException":
|
|
10661
10736
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10680,10 +10755,12 @@ const deserializeAws_restJson1DisassociateSigninDelegateGroupsFromAccountCommand
|
|
|
10680
10755
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10681
10756
|
default:
|
|
10682
10757
|
const parsedBody = parsedOutput.body;
|
|
10758
|
+
const $metadata = deserializeMetadata(output);
|
|
10759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10683
10760
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10685
10762
|
$fault: "client",
|
|
10686
|
-
$metadata
|
|
10763
|
+
$metadata,
|
|
10687
10764
|
});
|
|
10688
10765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10689
10766
|
}
|
|
@@ -10709,8 +10786,7 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
10709
10786
|
body: await parseBody(output.body, context),
|
|
10710
10787
|
};
|
|
10711
10788
|
let response;
|
|
10712
|
-
|
|
10713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10714
10790
|
switch (errorCode) {
|
|
10715
10791
|
case "BadRequestException":
|
|
10716
10792
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10735,10 +10811,12 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
10735
10811
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10736
10812
|
default:
|
|
10737
10813
|
const parsedBody = parsedOutput.body;
|
|
10814
|
+
const $metadata = deserializeMetadata(output);
|
|
10815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10738
10816
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10740
10818
|
$fault: "client",
|
|
10741
|
-
$metadata
|
|
10819
|
+
$metadata,
|
|
10742
10820
|
});
|
|
10743
10821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10744
10822
|
}
|
|
@@ -10764,8 +10842,7 @@ const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, co
|
|
|
10764
10842
|
body: await parseBody(output.body, context),
|
|
10765
10843
|
};
|
|
10766
10844
|
let response;
|
|
10767
|
-
|
|
10768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10769
10846
|
switch (errorCode) {
|
|
10770
10847
|
case "BadRequestException":
|
|
10771
10848
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10790,10 +10867,12 @@ const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, co
|
|
|
10790
10867
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10791
10868
|
default:
|
|
10792
10869
|
const parsedBody = parsedOutput.body;
|
|
10870
|
+
const $metadata = deserializeMetadata(output);
|
|
10871
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10793
10872
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10873
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10795
10874
|
$fault: "client",
|
|
10796
|
-
$metadata
|
|
10875
|
+
$metadata,
|
|
10797
10876
|
});
|
|
10798
10877
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10799
10878
|
}
|
|
@@ -10823,8 +10902,7 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = asyn
|
|
|
10823
10902
|
body: await parseBody(output.body, context),
|
|
10824
10903
|
};
|
|
10825
10904
|
let response;
|
|
10826
|
-
|
|
10827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10828
10906
|
switch (errorCode) {
|
|
10829
10907
|
case "BadRequestException":
|
|
10830
10908
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10849,10 +10927,12 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = asyn
|
|
|
10849
10927
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10850
10928
|
default:
|
|
10851
10929
|
const parsedBody = parsedOutput.body;
|
|
10930
|
+
const $metadata = deserializeMetadata(output);
|
|
10931
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10852
10932
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10853
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10933
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10854
10934
|
$fault: "client",
|
|
10855
|
-
$metadata
|
|
10935
|
+
$metadata,
|
|
10856
10936
|
});
|
|
10857
10937
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10858
10938
|
}
|
|
@@ -10878,8 +10958,7 @@ const deserializeAws_restJson1GetAppInstanceStreamingConfigurationsCommandError
|
|
|
10878
10958
|
body: await parseBody(output.body, context),
|
|
10879
10959
|
};
|
|
10880
10960
|
let response;
|
|
10881
|
-
|
|
10882
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10883
10962
|
switch (errorCode) {
|
|
10884
10963
|
case "BadRequestException":
|
|
10885
10964
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10904,10 +10983,12 @@ const deserializeAws_restJson1GetAppInstanceStreamingConfigurationsCommandError
|
|
|
10904
10983
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10905
10984
|
default:
|
|
10906
10985
|
const parsedBody = parsedOutput.body;
|
|
10986
|
+
const $metadata = deserializeMetadata(output);
|
|
10987
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10907
10988
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10908
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10909
10990
|
$fault: "client",
|
|
10910
|
-
$metadata
|
|
10991
|
+
$metadata,
|
|
10911
10992
|
});
|
|
10912
10993
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10913
10994
|
}
|
|
@@ -10933,8 +11014,7 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
10933
11014
|
body: await parseBody(output.body, context),
|
|
10934
11015
|
};
|
|
10935
11016
|
let response;
|
|
10936
|
-
|
|
10937
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11017
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10938
11018
|
switch (errorCode) {
|
|
10939
11019
|
case "BadRequestException":
|
|
10940
11020
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -10959,10 +11039,12 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
10959
11039
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
10960
11040
|
default:
|
|
10961
11041
|
const parsedBody = parsedOutput.body;
|
|
11042
|
+
const $metadata = deserializeMetadata(output);
|
|
11043
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10962
11044
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
10963
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11045
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10964
11046
|
$fault: "client",
|
|
10965
|
-
$metadata
|
|
11047
|
+
$metadata,
|
|
10966
11048
|
});
|
|
10967
11049
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10968
11050
|
}
|
|
@@ -10988,8 +11070,7 @@ const deserializeAws_restJson1GetBotCommandError = async (output, context) => {
|
|
|
10988
11070
|
body: await parseBody(output.body, context),
|
|
10989
11071
|
};
|
|
10990
11072
|
let response;
|
|
10991
|
-
|
|
10992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10993
11074
|
switch (errorCode) {
|
|
10994
11075
|
case "BadRequestException":
|
|
10995
11076
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11014,10 +11095,12 @@ const deserializeAws_restJson1GetBotCommandError = async (output, context) => {
|
|
|
11014
11095
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11015
11096
|
default:
|
|
11016
11097
|
const parsedBody = parsedOutput.body;
|
|
11098
|
+
const $metadata = deserializeMetadata(output);
|
|
11099
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11017
11100
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11018
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11101
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11019
11102
|
$fault: "client",
|
|
11020
|
-
$metadata
|
|
11103
|
+
$metadata,
|
|
11021
11104
|
});
|
|
11022
11105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11023
11106
|
}
|
|
@@ -11043,8 +11126,7 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
11043
11126
|
body: await parseBody(output.body, context),
|
|
11044
11127
|
};
|
|
11045
11128
|
let response;
|
|
11046
|
-
|
|
11047
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11048
11130
|
switch (errorCode) {
|
|
11049
11131
|
case "BadRequestException":
|
|
11050
11132
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11069,10 +11151,12 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
11069
11151
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11070
11152
|
default:
|
|
11071
11153
|
const parsedBody = parsedOutput.body;
|
|
11154
|
+
const $metadata = deserializeMetadata(output);
|
|
11155
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11072
11156
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11073
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11157
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11074
11158
|
$fault: "client",
|
|
11075
|
-
$metadata
|
|
11159
|
+
$metadata,
|
|
11076
11160
|
});
|
|
11077
11161
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11078
11162
|
}
|
|
@@ -11098,8 +11182,7 @@ const deserializeAws_restJson1GetEventsConfigurationCommandError = async (output
|
|
|
11098
11182
|
body: await parseBody(output.body, context),
|
|
11099
11183
|
};
|
|
11100
11184
|
let response;
|
|
11101
|
-
|
|
11102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11103
11186
|
switch (errorCode) {
|
|
11104
11187
|
case "BadRequestException":
|
|
11105
11188
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11124,10 +11207,12 @@ const deserializeAws_restJson1GetEventsConfigurationCommandError = async (output
|
|
|
11124
11207
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11125
11208
|
default:
|
|
11126
11209
|
const parsedBody = parsedOutput.body;
|
|
11210
|
+
const $metadata = deserializeMetadata(output);
|
|
11211
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11127
11212
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11128
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11213
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11129
11214
|
$fault: "client",
|
|
11130
|
-
$metadata
|
|
11215
|
+
$metadata,
|
|
11131
11216
|
});
|
|
11132
11217
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11133
11218
|
}
|
|
@@ -11157,8 +11242,7 @@ const deserializeAws_restJson1GetGlobalSettingsCommandError = async (output, con
|
|
|
11157
11242
|
body: await parseBody(output.body, context),
|
|
11158
11243
|
};
|
|
11159
11244
|
let response;
|
|
11160
|
-
|
|
11161
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11162
11246
|
switch (errorCode) {
|
|
11163
11247
|
case "BadRequestException":
|
|
11164
11248
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11180,10 +11264,12 @@ const deserializeAws_restJson1GetGlobalSettingsCommandError = async (output, con
|
|
|
11180
11264
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11181
11265
|
default:
|
|
11182
11266
|
const parsedBody = parsedOutput.body;
|
|
11267
|
+
const $metadata = deserializeMetadata(output);
|
|
11268
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11183
11269
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11185
11271
|
$fault: "client",
|
|
11186
|
-
$metadata
|
|
11272
|
+
$metadata,
|
|
11187
11273
|
});
|
|
11188
11274
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11189
11275
|
}
|
|
@@ -11209,8 +11295,7 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
|
|
|
11209
11295
|
body: await parseBody(output.body, context),
|
|
11210
11296
|
};
|
|
11211
11297
|
let response;
|
|
11212
|
-
|
|
11213
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11214
11299
|
switch (errorCode) {
|
|
11215
11300
|
case "BadRequestException":
|
|
11216
11301
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11235,10 +11320,12 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
|
|
|
11235
11320
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11236
11321
|
default:
|
|
11237
11322
|
const parsedBody = parsedOutput.body;
|
|
11323
|
+
const $metadata = deserializeMetadata(output);
|
|
11324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11238
11325
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11240
11327
|
$fault: "client",
|
|
11241
|
-
$metadata
|
|
11328
|
+
$metadata,
|
|
11242
11329
|
});
|
|
11243
11330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11244
11331
|
}
|
|
@@ -11264,8 +11351,7 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
11264
11351
|
body: await parseBody(output.body, context),
|
|
11265
11352
|
};
|
|
11266
11353
|
let response;
|
|
11267
|
-
|
|
11268
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11354
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11269
11355
|
switch (errorCode) {
|
|
11270
11356
|
case "BadRequestException":
|
|
11271
11357
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11290,10 +11376,12 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
11290
11376
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11291
11377
|
default:
|
|
11292
11378
|
const parsedBody = parsedOutput.body;
|
|
11379
|
+
const $metadata = deserializeMetadata(output);
|
|
11380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11293
11381
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11295
11383
|
$fault: "client",
|
|
11296
|
-
$metadata
|
|
11384
|
+
$metadata,
|
|
11297
11385
|
});
|
|
11298
11386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11299
11387
|
}
|
|
@@ -11319,8 +11407,7 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
11319
11407
|
body: await parseBody(output.body, context),
|
|
11320
11408
|
};
|
|
11321
11409
|
let response;
|
|
11322
|
-
|
|
11323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11324
11411
|
switch (errorCode) {
|
|
11325
11412
|
case "ForbiddenException":
|
|
11326
11413
|
case "com.amazonaws.chime#ForbiddenException":
|
|
@@ -11339,10 +11426,12 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
11339
11426
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11340
11427
|
default:
|
|
11341
11428
|
const parsedBody = parsedOutput.body;
|
|
11429
|
+
const $metadata = deserializeMetadata(output);
|
|
11430
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11342
11431
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11343
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11344
11433
|
$fault: "client",
|
|
11345
|
-
$metadata
|
|
11434
|
+
$metadata,
|
|
11346
11435
|
});
|
|
11347
11436
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11348
11437
|
}
|
|
@@ -11368,8 +11457,7 @@ const deserializeAws_restJson1GetPhoneNumberCommandError = async (output, contex
|
|
|
11368
11457
|
body: await parseBody(output.body, context),
|
|
11369
11458
|
};
|
|
11370
11459
|
let response;
|
|
11371
|
-
|
|
11372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11460
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11373
11461
|
switch (errorCode) {
|
|
11374
11462
|
case "BadRequestException":
|
|
11375
11463
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11394,10 +11482,12 @@ const deserializeAws_restJson1GetPhoneNumberCommandError = async (output, contex
|
|
|
11394
11482
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11395
11483
|
default:
|
|
11396
11484
|
const parsedBody = parsedOutput.body;
|
|
11485
|
+
const $metadata = deserializeMetadata(output);
|
|
11486
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11397
11487
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11488
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11399
11489
|
$fault: "client",
|
|
11400
|
-
$metadata
|
|
11490
|
+
$metadata,
|
|
11401
11491
|
});
|
|
11402
11492
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11403
11493
|
}
|
|
@@ -11423,8 +11513,7 @@ const deserializeAws_restJson1GetPhoneNumberOrderCommandError = async (output, c
|
|
|
11423
11513
|
body: await parseBody(output.body, context),
|
|
11424
11514
|
};
|
|
11425
11515
|
let response;
|
|
11426
|
-
|
|
11427
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11428
11517
|
switch (errorCode) {
|
|
11429
11518
|
case "BadRequestException":
|
|
11430
11519
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11449,10 +11538,12 @@ const deserializeAws_restJson1GetPhoneNumberOrderCommandError = async (output, c
|
|
|
11449
11538
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11450
11539
|
default:
|
|
11451
11540
|
const parsedBody = parsedOutput.body;
|
|
11541
|
+
const $metadata = deserializeMetadata(output);
|
|
11542
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11452
11543
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11544
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11454
11545
|
$fault: "client",
|
|
11455
|
-
$metadata
|
|
11546
|
+
$metadata,
|
|
11456
11547
|
});
|
|
11457
11548
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11458
11549
|
}
|
|
@@ -11482,8 +11573,7 @@ const deserializeAws_restJson1GetPhoneNumberSettingsCommandError = async (output
|
|
|
11482
11573
|
body: await parseBody(output.body, context),
|
|
11483
11574
|
};
|
|
11484
11575
|
let response;
|
|
11485
|
-
|
|
11486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11487
11577
|
switch (errorCode) {
|
|
11488
11578
|
case "BadRequestException":
|
|
11489
11579
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11505,10 +11595,12 @@ const deserializeAws_restJson1GetPhoneNumberSettingsCommandError = async (output
|
|
|
11505
11595
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11506
11596
|
default:
|
|
11507
11597
|
const parsedBody = parsedOutput.body;
|
|
11598
|
+
const $metadata = deserializeMetadata(output);
|
|
11599
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11508
11600
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11601
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11510
11602
|
$fault: "client",
|
|
11511
|
-
$metadata
|
|
11603
|
+
$metadata,
|
|
11512
11604
|
});
|
|
11513
11605
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11514
11606
|
}
|
|
@@ -11534,8 +11626,7 @@ const deserializeAws_restJson1GetProxySessionCommandError = async (output, conte
|
|
|
11534
11626
|
body: await parseBody(output.body, context),
|
|
11535
11627
|
};
|
|
11536
11628
|
let response;
|
|
11537
|
-
|
|
11538
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11539
11630
|
switch (errorCode) {
|
|
11540
11631
|
case "BadRequestException":
|
|
11541
11632
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11560,10 +11651,12 @@ const deserializeAws_restJson1GetProxySessionCommandError = async (output, conte
|
|
|
11560
11651
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11561
11652
|
default:
|
|
11562
11653
|
const parsedBody = parsedOutput.body;
|
|
11654
|
+
const $metadata = deserializeMetadata(output);
|
|
11655
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11563
11656
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11657
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11565
11658
|
$fault: "client",
|
|
11566
|
-
$metadata
|
|
11659
|
+
$metadata,
|
|
11567
11660
|
});
|
|
11568
11661
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11569
11662
|
}
|
|
@@ -11593,8 +11686,7 @@ const deserializeAws_restJson1GetRetentionSettingsCommandError = async (output,
|
|
|
11593
11686
|
body: await parseBody(output.body, context),
|
|
11594
11687
|
};
|
|
11595
11688
|
let response;
|
|
11596
|
-
|
|
11597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11689
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11598
11690
|
switch (errorCode) {
|
|
11599
11691
|
case "BadRequestException":
|
|
11600
11692
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11619,10 +11711,12 @@ const deserializeAws_restJson1GetRetentionSettingsCommandError = async (output,
|
|
|
11619
11711
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11620
11712
|
default:
|
|
11621
11713
|
const parsedBody = parsedOutput.body;
|
|
11714
|
+
const $metadata = deserializeMetadata(output);
|
|
11715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11622
11716
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11624
11718
|
$fault: "client",
|
|
11625
|
-
$metadata
|
|
11719
|
+
$metadata,
|
|
11626
11720
|
});
|
|
11627
11721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11628
11722
|
}
|
|
@@ -11648,8 +11742,7 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
|
|
|
11648
11742
|
body: await parseBody(output.body, context),
|
|
11649
11743
|
};
|
|
11650
11744
|
let response;
|
|
11651
|
-
|
|
11652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11745
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11653
11746
|
switch (errorCode) {
|
|
11654
11747
|
case "BadRequestException":
|
|
11655
11748
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11674,10 +11767,12 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
|
|
|
11674
11767
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11675
11768
|
default:
|
|
11676
11769
|
const parsedBody = parsedOutput.body;
|
|
11770
|
+
const $metadata = deserializeMetadata(output);
|
|
11771
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11677
11772
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11678
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11773
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11679
11774
|
$fault: "client",
|
|
11680
|
-
$metadata
|
|
11775
|
+
$metadata,
|
|
11681
11776
|
});
|
|
11682
11777
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11683
11778
|
}
|
|
@@ -11703,8 +11798,7 @@ const deserializeAws_restJson1GetSipMediaApplicationCommandError = async (output
|
|
|
11703
11798
|
body: await parseBody(output.body, context),
|
|
11704
11799
|
};
|
|
11705
11800
|
let response;
|
|
11706
|
-
|
|
11707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11801
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11708
11802
|
switch (errorCode) {
|
|
11709
11803
|
case "BadRequestException":
|
|
11710
11804
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11729,10 +11823,12 @@ const deserializeAws_restJson1GetSipMediaApplicationCommandError = async (output
|
|
|
11729
11823
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11730
11824
|
default:
|
|
11731
11825
|
const parsedBody = parsedOutput.body;
|
|
11826
|
+
const $metadata = deserializeMetadata(output);
|
|
11827
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11732
11828
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11733
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11829
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11734
11830
|
$fault: "client",
|
|
11735
|
-
$metadata
|
|
11831
|
+
$metadata,
|
|
11736
11832
|
});
|
|
11737
11833
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11738
11834
|
}
|
|
@@ -11759,8 +11855,7 @@ const deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommandE
|
|
|
11759
11855
|
body: await parseBody(output.body, context),
|
|
11760
11856
|
};
|
|
11761
11857
|
let response;
|
|
11762
|
-
|
|
11763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11764
11859
|
switch (errorCode) {
|
|
11765
11860
|
case "BadRequestException":
|
|
11766
11861
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11785,10 +11880,12 @@ const deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommandE
|
|
|
11785
11880
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11786
11881
|
default:
|
|
11787
11882
|
const parsedBody = parsedOutput.body;
|
|
11883
|
+
const $metadata = deserializeMetadata(output);
|
|
11884
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11788
11885
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11886
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11790
11887
|
$fault: "client",
|
|
11791
|
-
$metadata
|
|
11888
|
+
$metadata,
|
|
11792
11889
|
});
|
|
11793
11890
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11794
11891
|
}
|
|
@@ -11814,8 +11911,7 @@ const deserializeAws_restJson1GetSipRuleCommandError = async (output, context) =
|
|
|
11814
11911
|
body: await parseBody(output.body, context),
|
|
11815
11912
|
};
|
|
11816
11913
|
let response;
|
|
11817
|
-
|
|
11818
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11819
11915
|
switch (errorCode) {
|
|
11820
11916
|
case "BadRequestException":
|
|
11821
11917
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11840,10 +11936,12 @@ const deserializeAws_restJson1GetSipRuleCommandError = async (output, context) =
|
|
|
11840
11936
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11841
11937
|
default:
|
|
11842
11938
|
const parsedBody = parsedOutput.body;
|
|
11939
|
+
const $metadata = deserializeMetadata(output);
|
|
11940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11843
11941
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11845
11943
|
$fault: "client",
|
|
11846
|
-
$metadata
|
|
11944
|
+
$metadata,
|
|
11847
11945
|
});
|
|
11848
11946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11849
11947
|
}
|
|
@@ -11869,8 +11967,7 @@ const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
|
11869
11967
|
body: await parseBody(output.body, context),
|
|
11870
11968
|
};
|
|
11871
11969
|
let response;
|
|
11872
|
-
|
|
11873
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11970
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11874
11971
|
switch (errorCode) {
|
|
11875
11972
|
case "BadRequestException":
|
|
11876
11973
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11895,10 +11992,12 @@ const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
|
11895
11992
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11896
11993
|
default:
|
|
11897
11994
|
const parsedBody = parsedOutput.body;
|
|
11995
|
+
const $metadata = deserializeMetadata(output);
|
|
11996
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11898
11997
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11998
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11900
11999
|
$fault: "client",
|
|
11901
|
-
$metadata
|
|
12000
|
+
$metadata,
|
|
11902
12001
|
});
|
|
11903
12002
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11904
12003
|
}
|
|
@@ -11924,8 +12023,7 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
11924
12023
|
body: await parseBody(output.body, context),
|
|
11925
12024
|
};
|
|
11926
12025
|
let response;
|
|
11927
|
-
|
|
11928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12026
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11929
12027
|
switch (errorCode) {
|
|
11930
12028
|
case "BadRequestException":
|
|
11931
12029
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -11950,10 +12048,12 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
11950
12048
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
11951
12049
|
default:
|
|
11952
12050
|
const parsedBody = parsedOutput.body;
|
|
12051
|
+
const $metadata = deserializeMetadata(output);
|
|
12052
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11953
12053
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
11954
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12054
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11955
12055
|
$fault: "client",
|
|
11956
|
-
$metadata
|
|
12056
|
+
$metadata,
|
|
11957
12057
|
});
|
|
11958
12058
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11959
12059
|
}
|
|
@@ -11979,8 +12079,7 @@ const deserializeAws_restJson1GetVoiceConnectorCommandError = async (output, con
|
|
|
11979
12079
|
body: await parseBody(output.body, context),
|
|
11980
12080
|
};
|
|
11981
12081
|
let response;
|
|
11982
|
-
|
|
11983
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12082
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11984
12083
|
switch (errorCode) {
|
|
11985
12084
|
case "BadRequestException":
|
|
11986
12085
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12005,10 +12104,12 @@ const deserializeAws_restJson1GetVoiceConnectorCommandError = async (output, con
|
|
|
12005
12104
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12006
12105
|
default:
|
|
12007
12106
|
const parsedBody = parsedOutput.body;
|
|
12107
|
+
const $metadata = deserializeMetadata(output);
|
|
12108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12008
12109
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12010
12111
|
$fault: "client",
|
|
12011
|
-
$metadata
|
|
12112
|
+
$metadata,
|
|
12012
12113
|
});
|
|
12013
12114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12014
12115
|
}
|
|
@@ -12034,8 +12135,7 @@ const deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
12034
12135
|
body: await parseBody(output.body, context),
|
|
12035
12136
|
};
|
|
12036
12137
|
let response;
|
|
12037
|
-
|
|
12038
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12039
12139
|
switch (errorCode) {
|
|
12040
12140
|
case "BadRequestException":
|
|
12041
12141
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12060,10 +12160,12 @@ const deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
12060
12160
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12061
12161
|
default:
|
|
12062
12162
|
const parsedBody = parsedOutput.body;
|
|
12163
|
+
const $metadata = deserializeMetadata(output);
|
|
12164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12063
12165
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12064
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12065
12167
|
$fault: "client",
|
|
12066
|
-
$metadata
|
|
12168
|
+
$metadata,
|
|
12067
12169
|
});
|
|
12068
12170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12069
12171
|
}
|
|
@@ -12089,8 +12191,7 @@ const deserializeAws_restJson1GetVoiceConnectorGroupCommandError = async (output
|
|
|
12089
12191
|
body: await parseBody(output.body, context),
|
|
12090
12192
|
};
|
|
12091
12193
|
let response;
|
|
12092
|
-
|
|
12093
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12094
12195
|
switch (errorCode) {
|
|
12095
12196
|
case "BadRequestException":
|
|
12096
12197
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12115,10 +12216,12 @@ const deserializeAws_restJson1GetVoiceConnectorGroupCommandError = async (output
|
|
|
12115
12216
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12116
12217
|
default:
|
|
12117
12218
|
const parsedBody = parsedOutput.body;
|
|
12219
|
+
const $metadata = deserializeMetadata(output);
|
|
12220
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12118
12221
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12222
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12120
12223
|
$fault: "client",
|
|
12121
|
-
$metadata
|
|
12224
|
+
$metadata,
|
|
12122
12225
|
});
|
|
12123
12226
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12124
12227
|
}
|
|
@@ -12144,8 +12247,7 @@ const deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommandError
|
|
|
12144
12247
|
body: await parseBody(output.body, context),
|
|
12145
12248
|
};
|
|
12146
12249
|
let response;
|
|
12147
|
-
|
|
12148
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12149
12251
|
switch (errorCode) {
|
|
12150
12252
|
case "BadRequestException":
|
|
12151
12253
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12170,10 +12272,12 @@ const deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommandError
|
|
|
12170
12272
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12171
12273
|
default:
|
|
12172
12274
|
const parsedBody = parsedOutput.body;
|
|
12275
|
+
const $metadata = deserializeMetadata(output);
|
|
12276
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12173
12277
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12174
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12175
12279
|
$fault: "client",
|
|
12176
|
-
$metadata
|
|
12280
|
+
$metadata,
|
|
12177
12281
|
});
|
|
12178
12282
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12179
12283
|
}
|
|
@@ -12199,8 +12303,7 @@ const deserializeAws_restJson1GetVoiceConnectorOriginationCommandError = async (
|
|
|
12199
12303
|
body: await parseBody(output.body, context),
|
|
12200
12304
|
};
|
|
12201
12305
|
let response;
|
|
12202
|
-
|
|
12203
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12204
12307
|
switch (errorCode) {
|
|
12205
12308
|
case "BadRequestException":
|
|
12206
12309
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12225,10 +12328,12 @@ const deserializeAws_restJson1GetVoiceConnectorOriginationCommandError = async (
|
|
|
12225
12328
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12226
12329
|
default:
|
|
12227
12330
|
const parsedBody = parsedOutput.body;
|
|
12331
|
+
const $metadata = deserializeMetadata(output);
|
|
12332
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12228
12333
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12334
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12230
12335
|
$fault: "client",
|
|
12231
|
-
$metadata
|
|
12336
|
+
$metadata,
|
|
12232
12337
|
});
|
|
12233
12338
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12234
12339
|
}
|
|
@@ -12254,8 +12359,7 @@ const deserializeAws_restJson1GetVoiceConnectorProxyCommandError = async (output
|
|
|
12254
12359
|
body: await parseBody(output.body, context),
|
|
12255
12360
|
};
|
|
12256
12361
|
let response;
|
|
12257
|
-
|
|
12258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12259
12363
|
switch (errorCode) {
|
|
12260
12364
|
case "BadRequestException":
|
|
12261
12365
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12280,10 +12384,12 @@ const deserializeAws_restJson1GetVoiceConnectorProxyCommandError = async (output
|
|
|
12280
12384
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12281
12385
|
default:
|
|
12282
12386
|
const parsedBody = parsedOutput.body;
|
|
12387
|
+
const $metadata = deserializeMetadata(output);
|
|
12388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12283
12389
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12284
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12285
12391
|
$fault: "client",
|
|
12286
|
-
$metadata
|
|
12392
|
+
$metadata,
|
|
12287
12393
|
});
|
|
12288
12394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12289
12395
|
}
|
|
@@ -12309,8 +12415,7 @@ const deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommandErro
|
|
|
12309
12415
|
body: await parseBody(output.body, context),
|
|
12310
12416
|
};
|
|
12311
12417
|
let response;
|
|
12312
|
-
|
|
12313
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12314
12419
|
switch (errorCode) {
|
|
12315
12420
|
case "BadRequestException":
|
|
12316
12421
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12335,10 +12440,12 @@ const deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommandErro
|
|
|
12335
12440
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12336
12441
|
default:
|
|
12337
12442
|
const parsedBody = parsedOutput.body;
|
|
12443
|
+
const $metadata = deserializeMetadata(output);
|
|
12444
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12338
12445
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12339
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12446
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12340
12447
|
$fault: "client",
|
|
12341
|
-
$metadata
|
|
12448
|
+
$metadata,
|
|
12342
12449
|
});
|
|
12343
12450
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12344
12451
|
}
|
|
@@ -12364,8 +12471,7 @@ const deserializeAws_restJson1GetVoiceConnectorTerminationCommandError = async (
|
|
|
12364
12471
|
body: await parseBody(output.body, context),
|
|
12365
12472
|
};
|
|
12366
12473
|
let response;
|
|
12367
|
-
|
|
12368
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12474
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12369
12475
|
switch (errorCode) {
|
|
12370
12476
|
case "BadRequestException":
|
|
12371
12477
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12390,10 +12496,12 @@ const deserializeAws_restJson1GetVoiceConnectorTerminationCommandError = async (
|
|
|
12390
12496
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12391
12497
|
default:
|
|
12392
12498
|
const parsedBody = parsedOutput.body;
|
|
12499
|
+
const $metadata = deserializeMetadata(output);
|
|
12500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12393
12501
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12394
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12395
12503
|
$fault: "client",
|
|
12396
|
-
$metadata
|
|
12504
|
+
$metadata,
|
|
12397
12505
|
});
|
|
12398
12506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12399
12507
|
}
|
|
@@ -12419,8 +12527,7 @@ const deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommandError = a
|
|
|
12419
12527
|
body: await parseBody(output.body, context),
|
|
12420
12528
|
};
|
|
12421
12529
|
let response;
|
|
12422
|
-
|
|
12423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12530
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12424
12531
|
switch (errorCode) {
|
|
12425
12532
|
case "BadRequestException":
|
|
12426
12533
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12445,10 +12552,12 @@ const deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommandError = a
|
|
|
12445
12552
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12446
12553
|
default:
|
|
12447
12554
|
const parsedBody = parsedOutput.body;
|
|
12555
|
+
const $metadata = deserializeMetadata(output);
|
|
12556
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12448
12557
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12558
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12450
12559
|
$fault: "client",
|
|
12451
|
-
$metadata
|
|
12560
|
+
$metadata,
|
|
12452
12561
|
});
|
|
12453
12562
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12454
12563
|
}
|
|
@@ -12474,8 +12583,7 @@ const deserializeAws_restJson1InviteUsersCommandError = async (output, context)
|
|
|
12474
12583
|
body: await parseBody(output.body, context),
|
|
12475
12584
|
};
|
|
12476
12585
|
let response;
|
|
12477
|
-
|
|
12478
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12479
12587
|
switch (errorCode) {
|
|
12480
12588
|
case "BadRequestException":
|
|
12481
12589
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12500,10 +12608,12 @@ const deserializeAws_restJson1InviteUsersCommandError = async (output, context)
|
|
|
12500
12608
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12501
12609
|
default:
|
|
12502
12610
|
const parsedBody = parsedOutput.body;
|
|
12611
|
+
const $metadata = deserializeMetadata(output);
|
|
12612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12503
12613
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12505
12615
|
$fault: "client",
|
|
12506
|
-
$metadata
|
|
12616
|
+
$metadata,
|
|
12507
12617
|
});
|
|
12508
12618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12509
12619
|
}
|
|
@@ -12533,8 +12643,7 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
12533
12643
|
body: await parseBody(output.body, context),
|
|
12534
12644
|
};
|
|
12535
12645
|
let response;
|
|
12536
|
-
|
|
12537
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12646
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12538
12647
|
switch (errorCode) {
|
|
12539
12648
|
case "BadRequestException":
|
|
12540
12649
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12559,10 +12668,12 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
12559
12668
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12560
12669
|
default:
|
|
12561
12670
|
const parsedBody = parsedOutput.body;
|
|
12671
|
+
const $metadata = deserializeMetadata(output);
|
|
12672
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12562
12673
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12563
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12564
12675
|
$fault: "client",
|
|
12565
|
-
$metadata
|
|
12676
|
+
$metadata,
|
|
12566
12677
|
});
|
|
12567
12678
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12568
12679
|
}
|
|
@@ -12596,8 +12707,7 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
12596
12707
|
body: await parseBody(output.body, context),
|
|
12597
12708
|
};
|
|
12598
12709
|
let response;
|
|
12599
|
-
|
|
12600
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12601
12711
|
switch (errorCode) {
|
|
12602
12712
|
case "BadRequestException":
|
|
12603
12713
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12619,10 +12729,12 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
12619
12729
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12620
12730
|
default:
|
|
12621
12731
|
const parsedBody = parsedOutput.body;
|
|
12732
|
+
const $metadata = deserializeMetadata(output);
|
|
12733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12622
12734
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12624
12736
|
$fault: "client",
|
|
12625
|
-
$metadata
|
|
12737
|
+
$metadata,
|
|
12626
12738
|
});
|
|
12627
12739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12628
12740
|
}
|
|
@@ -12652,8 +12764,7 @@ const deserializeAws_restJson1ListAppInstancesCommandError = async (output, cont
|
|
|
12652
12764
|
body: await parseBody(output.body, context),
|
|
12653
12765
|
};
|
|
12654
12766
|
let response;
|
|
12655
|
-
|
|
12656
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12657
12768
|
switch (errorCode) {
|
|
12658
12769
|
case "BadRequestException":
|
|
12659
12770
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12675,10 +12786,12 @@ const deserializeAws_restJson1ListAppInstancesCommandError = async (output, cont
|
|
|
12675
12786
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12676
12787
|
default:
|
|
12677
12788
|
const parsedBody = parsedOutput.body;
|
|
12789
|
+
const $metadata = deserializeMetadata(output);
|
|
12790
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12678
12791
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12679
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12680
12793
|
$fault: "client",
|
|
12681
|
-
$metadata
|
|
12794
|
+
$metadata,
|
|
12682
12795
|
});
|
|
12683
12796
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12684
12797
|
}
|
|
@@ -12712,8 +12825,7 @@ const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output,
|
|
|
12712
12825
|
body: await parseBody(output.body, context),
|
|
12713
12826
|
};
|
|
12714
12827
|
let response;
|
|
12715
|
-
|
|
12716
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12717
12829
|
switch (errorCode) {
|
|
12718
12830
|
case "BadRequestException":
|
|
12719
12831
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12735,10 +12847,12 @@ const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output,
|
|
|
12735
12847
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12736
12848
|
default:
|
|
12737
12849
|
const parsedBody = parsedOutput.body;
|
|
12850
|
+
const $metadata = deserializeMetadata(output);
|
|
12851
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12738
12852
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12853
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12740
12854
|
$fault: "client",
|
|
12741
|
-
$metadata
|
|
12855
|
+
$metadata,
|
|
12742
12856
|
});
|
|
12743
12857
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12744
12858
|
}
|
|
@@ -12768,8 +12882,7 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
12768
12882
|
body: await parseBody(output.body, context),
|
|
12769
12883
|
};
|
|
12770
12884
|
let response;
|
|
12771
|
-
|
|
12772
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12885
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12773
12886
|
switch (errorCode) {
|
|
12774
12887
|
case "BadRequestException":
|
|
12775
12888
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12794,10 +12907,12 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
12794
12907
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12795
12908
|
default:
|
|
12796
12909
|
const parsedBody = parsedOutput.body;
|
|
12910
|
+
const $metadata = deserializeMetadata(output);
|
|
12911
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12797
12912
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12798
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12913
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12799
12914
|
$fault: "client",
|
|
12800
|
-
$metadata
|
|
12915
|
+
$metadata,
|
|
12801
12916
|
});
|
|
12802
12917
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12803
12918
|
}
|
|
@@ -12823,8 +12938,7 @@ const deserializeAws_restJson1ListAttendeeTagsCommandError = async (output, cont
|
|
|
12823
12938
|
body: await parseBody(output.body, context),
|
|
12824
12939
|
};
|
|
12825
12940
|
let response;
|
|
12826
|
-
|
|
12827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12828
12942
|
switch (errorCode) {
|
|
12829
12943
|
case "BadRequestException":
|
|
12830
12944
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12849,10 +12963,12 @@ const deserializeAws_restJson1ListAttendeeTagsCommandError = async (output, cont
|
|
|
12849
12963
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12850
12964
|
default:
|
|
12851
12965
|
const parsedBody = parsedOutput.body;
|
|
12966
|
+
const $metadata = deserializeMetadata(output);
|
|
12967
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12852
12968
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12853
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12854
12970
|
$fault: "client",
|
|
12855
|
-
$metadata
|
|
12971
|
+
$metadata,
|
|
12856
12972
|
});
|
|
12857
12973
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12858
12974
|
}
|
|
@@ -12882,8 +12998,7 @@ const deserializeAws_restJson1ListBotsCommandError = async (output, context) =>
|
|
|
12882
12998
|
body: await parseBody(output.body, context),
|
|
12883
12999
|
};
|
|
12884
13000
|
let response;
|
|
12885
|
-
|
|
12886
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12887
13002
|
switch (errorCode) {
|
|
12888
13003
|
case "BadRequestException":
|
|
12889
13004
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12908,10 +13023,12 @@ const deserializeAws_restJson1ListBotsCommandError = async (output, context) =>
|
|
|
12908
13023
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12909
13024
|
default:
|
|
12910
13025
|
const parsedBody = parsedOutput.body;
|
|
13026
|
+
const $metadata = deserializeMetadata(output);
|
|
13027
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12911
13028
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12912
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13029
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12913
13030
|
$fault: "client",
|
|
12914
|
-
$metadata
|
|
13031
|
+
$metadata,
|
|
12915
13032
|
});
|
|
12916
13033
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12917
13034
|
}
|
|
@@ -12945,8 +13062,7 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
12945
13062
|
body: await parseBody(output.body, context),
|
|
12946
13063
|
};
|
|
12947
13064
|
let response;
|
|
12948
|
-
|
|
12949
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13065
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12950
13066
|
switch (errorCode) {
|
|
12951
13067
|
case "BadRequestException":
|
|
12952
13068
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -12968,10 +13084,12 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
12968
13084
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
12969
13085
|
default:
|
|
12970
13086
|
const parsedBody = parsedOutput.body;
|
|
13087
|
+
const $metadata = deserializeMetadata(output);
|
|
13088
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12971
13089
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
12972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13090
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12973
13091
|
$fault: "client",
|
|
12974
|
-
$metadata
|
|
13092
|
+
$metadata,
|
|
12975
13093
|
});
|
|
12976
13094
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12977
13095
|
}
|
|
@@ -13005,8 +13123,7 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
13005
13123
|
body: await parseBody(output.body, context),
|
|
13006
13124
|
};
|
|
13007
13125
|
let response;
|
|
13008
|
-
|
|
13009
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13126
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13010
13127
|
switch (errorCode) {
|
|
13011
13128
|
case "BadRequestException":
|
|
13012
13129
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13028,10 +13145,12 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
13028
13145
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13029
13146
|
default:
|
|
13030
13147
|
const parsedBody = parsedOutput.body;
|
|
13148
|
+
const $metadata = deserializeMetadata(output);
|
|
13149
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13031
13150
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13033
13152
|
$fault: "client",
|
|
13034
|
-
$metadata
|
|
13153
|
+
$metadata,
|
|
13035
13154
|
});
|
|
13036
13155
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13037
13156
|
}
|
|
@@ -13061,8 +13180,7 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
13061
13180
|
body: await parseBody(output.body, context),
|
|
13062
13181
|
};
|
|
13063
13182
|
let response;
|
|
13064
|
-
|
|
13065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13066
13184
|
switch (errorCode) {
|
|
13067
13185
|
case "BadRequestException":
|
|
13068
13186
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13084,10 +13202,12 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
13084
13202
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13085
13203
|
default:
|
|
13086
13204
|
const parsedBody = parsedOutput.body;
|
|
13205
|
+
const $metadata = deserializeMetadata(output);
|
|
13206
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13087
13207
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13208
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13089
13209
|
$fault: "client",
|
|
13090
|
-
$metadata
|
|
13210
|
+
$metadata,
|
|
13091
13211
|
});
|
|
13092
13212
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13093
13213
|
}
|
|
@@ -13121,8 +13241,7 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
13121
13241
|
body: await parseBody(output.body, context),
|
|
13122
13242
|
};
|
|
13123
13243
|
let response;
|
|
13124
|
-
|
|
13125
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13126
13245
|
switch (errorCode) {
|
|
13127
13246
|
case "BadRequestException":
|
|
13128
13247
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13144,10 +13263,12 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
13144
13263
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13145
13264
|
default:
|
|
13146
13265
|
const parsedBody = parsedOutput.body;
|
|
13266
|
+
const $metadata = deserializeMetadata(output);
|
|
13267
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13147
13268
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13149
13270
|
$fault: "client",
|
|
13150
|
-
$metadata
|
|
13271
|
+
$metadata,
|
|
13151
13272
|
});
|
|
13152
13273
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13153
13274
|
}
|
|
@@ -13181,8 +13302,7 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
13181
13302
|
body: await parseBody(output.body, context),
|
|
13182
13303
|
};
|
|
13183
13304
|
let response;
|
|
13184
|
-
|
|
13185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13186
13306
|
switch (errorCode) {
|
|
13187
13307
|
case "BadRequestException":
|
|
13188
13308
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13204,10 +13324,12 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
13204
13324
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13205
13325
|
default:
|
|
13206
13326
|
const parsedBody = parsedOutput.body;
|
|
13327
|
+
const $metadata = deserializeMetadata(output);
|
|
13328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13207
13329
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13209
13331
|
$fault: "client",
|
|
13210
|
-
$metadata
|
|
13332
|
+
$metadata,
|
|
13211
13333
|
});
|
|
13212
13334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13213
13335
|
}
|
|
@@ -13237,8 +13359,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
13237
13359
|
body: await parseBody(output.body, context),
|
|
13238
13360
|
};
|
|
13239
13361
|
let response;
|
|
13240
|
-
|
|
13241
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13242
13363
|
switch (errorCode) {
|
|
13243
13364
|
case "BadRequestException":
|
|
13244
13365
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13260,10 +13381,12 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
13260
13381
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13261
13382
|
default:
|
|
13262
13383
|
const parsedBody = parsedOutput.body;
|
|
13384
|
+
const $metadata = deserializeMetadata(output);
|
|
13385
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13263
13386
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13387
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13265
13388
|
$fault: "client",
|
|
13266
|
-
$metadata
|
|
13389
|
+
$metadata,
|
|
13267
13390
|
});
|
|
13268
13391
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13269
13392
|
}
|
|
@@ -13293,8 +13416,7 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
13293
13416
|
body: await parseBody(output.body, context),
|
|
13294
13417
|
};
|
|
13295
13418
|
let response;
|
|
13296
|
-
|
|
13297
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13298
13420
|
switch (errorCode) {
|
|
13299
13421
|
case "BadRequestException":
|
|
13300
13422
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13316,10 +13438,12 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
13316
13438
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13317
13439
|
default:
|
|
13318
13440
|
const parsedBody = parsedOutput.body;
|
|
13441
|
+
const $metadata = deserializeMetadata(output);
|
|
13442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13319
13443
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13320
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13321
13445
|
$fault: "client",
|
|
13322
|
-
$metadata
|
|
13446
|
+
$metadata,
|
|
13323
13447
|
});
|
|
13324
13448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13325
13449
|
}
|
|
@@ -13349,8 +13473,7 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
|
|
|
13349
13473
|
body: await parseBody(output.body, context),
|
|
13350
13474
|
};
|
|
13351
13475
|
let response;
|
|
13352
|
-
|
|
13353
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13354
13477
|
switch (errorCode) {
|
|
13355
13478
|
case "BadRequestException":
|
|
13356
13479
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13372,10 +13495,12 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
|
|
|
13372
13495
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13373
13496
|
default:
|
|
13374
13497
|
const parsedBody = parsedOutput.body;
|
|
13498
|
+
const $metadata = deserializeMetadata(output);
|
|
13499
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13375
13500
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13376
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13501
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13377
13502
|
$fault: "client",
|
|
13378
|
-
$metadata
|
|
13503
|
+
$metadata,
|
|
13379
13504
|
});
|
|
13380
13505
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13381
13506
|
}
|
|
@@ -13405,8 +13530,7 @@ const deserializeAws_restJson1ListMeetingsCommandError = async (output, context)
|
|
|
13405
13530
|
body: await parseBody(output.body, context),
|
|
13406
13531
|
};
|
|
13407
13532
|
let response;
|
|
13408
|
-
|
|
13409
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13410
13534
|
switch (errorCode) {
|
|
13411
13535
|
case "BadRequestException":
|
|
13412
13536
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13428,10 +13552,12 @@ const deserializeAws_restJson1ListMeetingsCommandError = async (output, context)
|
|
|
13428
13552
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13429
13553
|
default:
|
|
13430
13554
|
const parsedBody = parsedOutput.body;
|
|
13555
|
+
const $metadata = deserializeMetadata(output);
|
|
13556
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13431
13557
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13432
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13558
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13433
13559
|
$fault: "client",
|
|
13434
|
-
$metadata
|
|
13560
|
+
$metadata,
|
|
13435
13561
|
});
|
|
13436
13562
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13437
13563
|
}
|
|
@@ -13457,8 +13583,7 @@ const deserializeAws_restJson1ListMeetingTagsCommandError = async (output, conte
|
|
|
13457
13583
|
body: await parseBody(output.body, context),
|
|
13458
13584
|
};
|
|
13459
13585
|
let response;
|
|
13460
|
-
|
|
13461
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13462
13587
|
switch (errorCode) {
|
|
13463
13588
|
case "BadRequestException":
|
|
13464
13589
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13483,10 +13608,12 @@ const deserializeAws_restJson1ListMeetingTagsCommandError = async (output, conte
|
|
|
13483
13608
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13484
13609
|
default:
|
|
13485
13610
|
const parsedBody = parsedOutput.body;
|
|
13611
|
+
const $metadata = deserializeMetadata(output);
|
|
13612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13486
13613
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13487
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13488
13615
|
$fault: "client",
|
|
13489
|
-
$metadata
|
|
13616
|
+
$metadata,
|
|
13490
13617
|
});
|
|
13491
13618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13492
13619
|
}
|
|
@@ -13516,8 +13643,7 @@ const deserializeAws_restJson1ListPhoneNumberOrdersCommandError = async (output,
|
|
|
13516
13643
|
body: await parseBody(output.body, context),
|
|
13517
13644
|
};
|
|
13518
13645
|
let response;
|
|
13519
|
-
|
|
13520
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13646
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13521
13647
|
switch (errorCode) {
|
|
13522
13648
|
case "BadRequestException":
|
|
13523
13649
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13539,10 +13665,12 @@ const deserializeAws_restJson1ListPhoneNumberOrdersCommandError = async (output,
|
|
|
13539
13665
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13540
13666
|
default:
|
|
13541
13667
|
const parsedBody = parsedOutput.body;
|
|
13668
|
+
const $metadata = deserializeMetadata(output);
|
|
13669
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13542
13670
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13671
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13544
13672
|
$fault: "client",
|
|
13545
|
-
$metadata
|
|
13673
|
+
$metadata,
|
|
13546
13674
|
});
|
|
13547
13675
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13548
13676
|
}
|
|
@@ -13572,8 +13700,7 @@ const deserializeAws_restJson1ListPhoneNumbersCommandError = async (output, cont
|
|
|
13572
13700
|
body: await parseBody(output.body, context),
|
|
13573
13701
|
};
|
|
13574
13702
|
let response;
|
|
13575
|
-
|
|
13576
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13577
13704
|
switch (errorCode) {
|
|
13578
13705
|
case "BadRequestException":
|
|
13579
13706
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13598,10 +13725,12 @@ const deserializeAws_restJson1ListPhoneNumbersCommandError = async (output, cont
|
|
|
13598
13725
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13599
13726
|
default:
|
|
13600
13727
|
const parsedBody = parsedOutput.body;
|
|
13728
|
+
const $metadata = deserializeMetadata(output);
|
|
13729
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13601
13730
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13602
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13731
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13603
13732
|
$fault: "client",
|
|
13604
|
-
$metadata
|
|
13733
|
+
$metadata,
|
|
13605
13734
|
});
|
|
13606
13735
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13607
13736
|
}
|
|
@@ -13631,8 +13760,7 @@ const deserializeAws_restJson1ListProxySessionsCommandError = async (output, con
|
|
|
13631
13760
|
body: await parseBody(output.body, context),
|
|
13632
13761
|
};
|
|
13633
13762
|
let response;
|
|
13634
|
-
|
|
13635
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13763
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13636
13764
|
switch (errorCode) {
|
|
13637
13765
|
case "BadRequestException":
|
|
13638
13766
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13657,10 +13785,12 @@ const deserializeAws_restJson1ListProxySessionsCommandError = async (output, con
|
|
|
13657
13785
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13658
13786
|
default:
|
|
13659
13787
|
const parsedBody = parsedOutput.body;
|
|
13788
|
+
const $metadata = deserializeMetadata(output);
|
|
13789
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13660
13790
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13662
13792
|
$fault: "client",
|
|
13663
|
-
$metadata
|
|
13793
|
+
$metadata,
|
|
13664
13794
|
});
|
|
13665
13795
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13666
13796
|
}
|
|
@@ -13690,8 +13820,7 @@ const deserializeAws_restJson1ListRoomMembershipsCommandError = async (output, c
|
|
|
13690
13820
|
body: await parseBody(output.body, context),
|
|
13691
13821
|
};
|
|
13692
13822
|
let response;
|
|
13693
|
-
|
|
13694
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13695
13824
|
switch (errorCode) {
|
|
13696
13825
|
case "BadRequestException":
|
|
13697
13826
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13716,10 +13845,12 @@ const deserializeAws_restJson1ListRoomMembershipsCommandError = async (output, c
|
|
|
13716
13845
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13717
13846
|
default:
|
|
13718
13847
|
const parsedBody = parsedOutput.body;
|
|
13848
|
+
const $metadata = deserializeMetadata(output);
|
|
13849
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13719
13850
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13720
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13851
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13721
13852
|
$fault: "client",
|
|
13722
|
-
$metadata
|
|
13853
|
+
$metadata,
|
|
13723
13854
|
});
|
|
13724
13855
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13725
13856
|
}
|
|
@@ -13749,8 +13880,7 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
|
|
|
13749
13880
|
body: await parseBody(output.body, context),
|
|
13750
13881
|
};
|
|
13751
13882
|
let response;
|
|
13752
|
-
|
|
13753
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13754
13884
|
switch (errorCode) {
|
|
13755
13885
|
case "BadRequestException":
|
|
13756
13886
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13775,10 +13905,12 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
|
|
|
13775
13905
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13776
13906
|
default:
|
|
13777
13907
|
const parsedBody = parsedOutput.body;
|
|
13908
|
+
const $metadata = deserializeMetadata(output);
|
|
13909
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13778
13910
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13779
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13911
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13780
13912
|
$fault: "client",
|
|
13781
|
-
$metadata
|
|
13913
|
+
$metadata,
|
|
13782
13914
|
});
|
|
13783
13915
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13784
13916
|
}
|
|
@@ -13808,8 +13940,7 @@ const deserializeAws_restJson1ListSipMediaApplicationsCommandError = async (outp
|
|
|
13808
13940
|
body: await parseBody(output.body, context),
|
|
13809
13941
|
};
|
|
13810
13942
|
let response;
|
|
13811
|
-
|
|
13812
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13943
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13813
13944
|
switch (errorCode) {
|
|
13814
13945
|
case "BadRequestException":
|
|
13815
13946
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13831,10 +13962,12 @@ const deserializeAws_restJson1ListSipMediaApplicationsCommandError = async (outp
|
|
|
13831
13962
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13832
13963
|
default:
|
|
13833
13964
|
const parsedBody = parsedOutput.body;
|
|
13965
|
+
const $metadata = deserializeMetadata(output);
|
|
13966
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13834
13967
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
13968
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13836
13969
|
$fault: "client",
|
|
13837
|
-
$metadata
|
|
13970
|
+
$metadata,
|
|
13838
13971
|
});
|
|
13839
13972
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13840
13973
|
}
|
|
@@ -13864,8 +13997,7 @@ const deserializeAws_restJson1ListSipRulesCommandError = async (output, context)
|
|
|
13864
13997
|
body: await parseBody(output.body, context),
|
|
13865
13998
|
};
|
|
13866
13999
|
let response;
|
|
13867
|
-
|
|
13868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13869
14001
|
switch (errorCode) {
|
|
13870
14002
|
case "BadRequestException":
|
|
13871
14003
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13887,10 +14019,12 @@ const deserializeAws_restJson1ListSipRulesCommandError = async (output, context)
|
|
|
13887
14019
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13888
14020
|
default:
|
|
13889
14021
|
const parsedBody = parsedOutput.body;
|
|
14022
|
+
const $metadata = deserializeMetadata(output);
|
|
14023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13890
14024
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13892
14026
|
$fault: "client",
|
|
13893
|
-
$metadata
|
|
14027
|
+
$metadata,
|
|
13894
14028
|
});
|
|
13895
14029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13896
14030
|
}
|
|
@@ -13916,8 +14050,7 @@ const deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommandError = as
|
|
|
13916
14050
|
body: await parseBody(output.body, context),
|
|
13917
14051
|
};
|
|
13918
14052
|
let response;
|
|
13919
|
-
|
|
13920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14053
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13921
14054
|
switch (errorCode) {
|
|
13922
14055
|
case "AccessDeniedException":
|
|
13923
14056
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -13942,10 +14075,12 @@ const deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommandError = as
|
|
|
13942
14075
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13943
14076
|
default:
|
|
13944
14077
|
const parsedBody = parsedOutput.body;
|
|
14078
|
+
const $metadata = deserializeMetadata(output);
|
|
14079
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13945
14080
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14081
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13947
14082
|
$fault: "client",
|
|
13948
|
-
$metadata
|
|
14083
|
+
$metadata,
|
|
13949
14084
|
});
|
|
13950
14085
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
13951
14086
|
}
|
|
@@ -13971,8 +14106,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
13971
14106
|
body: await parseBody(output.body, context),
|
|
13972
14107
|
};
|
|
13973
14108
|
let response;
|
|
13974
|
-
|
|
13975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13976
14110
|
switch (errorCode) {
|
|
13977
14111
|
case "BadRequestException":
|
|
13978
14112
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -13994,10 +14128,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
13994
14128
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
13995
14129
|
default:
|
|
13996
14130
|
const parsedBody = parsedOutput.body;
|
|
14131
|
+
const $metadata = deserializeMetadata(output);
|
|
14132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
13997
14133
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
13998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
13999
14135
|
$fault: "client",
|
|
14000
|
-
$metadata
|
|
14136
|
+
$metadata,
|
|
14001
14137
|
});
|
|
14002
14138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14003
14139
|
}
|
|
@@ -14027,8 +14163,7 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
14027
14163
|
body: await parseBody(output.body, context),
|
|
14028
14164
|
};
|
|
14029
14165
|
let response;
|
|
14030
|
-
|
|
14031
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14166
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14032
14167
|
switch (errorCode) {
|
|
14033
14168
|
case "BadRequestException":
|
|
14034
14169
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14053,10 +14188,12 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
14053
14188
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14054
14189
|
default:
|
|
14055
14190
|
const parsedBody = parsedOutput.body;
|
|
14191
|
+
const $metadata = deserializeMetadata(output);
|
|
14192
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14056
14193
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14057
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14194
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14058
14195
|
$fault: "client",
|
|
14059
|
-
$metadata
|
|
14196
|
+
$metadata,
|
|
14060
14197
|
});
|
|
14061
14198
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14062
14199
|
}
|
|
@@ -14086,8 +14223,7 @@ const deserializeAws_restJson1ListVoiceConnectorGroupsCommandError = async (outp
|
|
|
14086
14223
|
body: await parseBody(output.body, context),
|
|
14087
14224
|
};
|
|
14088
14225
|
let response;
|
|
14089
|
-
|
|
14090
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14226
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14091
14227
|
switch (errorCode) {
|
|
14092
14228
|
case "BadRequestException":
|
|
14093
14229
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14109,10 +14245,12 @@ const deserializeAws_restJson1ListVoiceConnectorGroupsCommandError = async (outp
|
|
|
14109
14245
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14110
14246
|
default:
|
|
14111
14247
|
const parsedBody = parsedOutput.body;
|
|
14248
|
+
const $metadata = deserializeMetadata(output);
|
|
14249
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14112
14250
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14113
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14251
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14114
14252
|
$fault: "client",
|
|
14115
|
-
$metadata
|
|
14253
|
+
$metadata,
|
|
14116
14254
|
});
|
|
14117
14255
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14118
14256
|
}
|
|
@@ -14142,8 +14280,7 @@ const deserializeAws_restJson1ListVoiceConnectorsCommandError = async (output, c
|
|
|
14142
14280
|
body: await parseBody(output.body, context),
|
|
14143
14281
|
};
|
|
14144
14282
|
let response;
|
|
14145
|
-
|
|
14146
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14283
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14147
14284
|
switch (errorCode) {
|
|
14148
14285
|
case "BadRequestException":
|
|
14149
14286
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14165,10 +14302,12 @@ const deserializeAws_restJson1ListVoiceConnectorsCommandError = async (output, c
|
|
|
14165
14302
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14166
14303
|
default:
|
|
14167
14304
|
const parsedBody = parsedOutput.body;
|
|
14305
|
+
const $metadata = deserializeMetadata(output);
|
|
14306
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14168
14307
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14169
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14308
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14170
14309
|
$fault: "client",
|
|
14171
|
-
$metadata
|
|
14310
|
+
$metadata,
|
|
14172
14311
|
});
|
|
14173
14312
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14174
14313
|
}
|
|
@@ -14194,8 +14333,7 @@ const deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommandErr
|
|
|
14194
14333
|
body: await parseBody(output.body, context),
|
|
14195
14334
|
};
|
|
14196
14335
|
let response;
|
|
14197
|
-
|
|
14198
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14336
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14199
14337
|
switch (errorCode) {
|
|
14200
14338
|
case "BadRequestException":
|
|
14201
14339
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14220,10 +14358,12 @@ const deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommandErr
|
|
|
14220
14358
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14221
14359
|
default:
|
|
14222
14360
|
const parsedBody = parsedOutput.body;
|
|
14361
|
+
const $metadata = deserializeMetadata(output);
|
|
14362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14223
14363
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14224
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14225
14365
|
$fault: "client",
|
|
14226
|
-
$metadata
|
|
14366
|
+
$metadata,
|
|
14227
14367
|
});
|
|
14228
14368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14229
14369
|
}
|
|
@@ -14245,8 +14385,7 @@ const deserializeAws_restJson1LogoutUserCommandError = async (output, context) =
|
|
|
14245
14385
|
body: await parseBody(output.body, context),
|
|
14246
14386
|
};
|
|
14247
14387
|
let response;
|
|
14248
|
-
|
|
14249
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14388
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14250
14389
|
switch (errorCode) {
|
|
14251
14390
|
case "BadRequestException":
|
|
14252
14391
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14271,10 +14410,12 @@ const deserializeAws_restJson1LogoutUserCommandError = async (output, context) =
|
|
|
14271
14410
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14272
14411
|
default:
|
|
14273
14412
|
const parsedBody = parsedOutput.body;
|
|
14413
|
+
const $metadata = deserializeMetadata(output);
|
|
14414
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14274
14415
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14275
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14276
14417
|
$fault: "client",
|
|
14277
|
-
$metadata
|
|
14418
|
+
$metadata,
|
|
14278
14419
|
});
|
|
14279
14420
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14280
14421
|
}
|
|
@@ -14304,8 +14445,7 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
14304
14445
|
body: await parseBody(output.body, context),
|
|
14305
14446
|
};
|
|
14306
14447
|
let response;
|
|
14307
|
-
|
|
14308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14309
14449
|
switch (errorCode) {
|
|
14310
14450
|
case "BadRequestException":
|
|
14311
14451
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14333,10 +14473,12 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
14333
14473
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14334
14474
|
default:
|
|
14335
14475
|
const parsedBody = parsedOutput.body;
|
|
14476
|
+
const $metadata = deserializeMetadata(output);
|
|
14477
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14336
14478
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14337
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14479
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14338
14480
|
$fault: "client",
|
|
14339
|
-
$metadata
|
|
14481
|
+
$metadata,
|
|
14340
14482
|
});
|
|
14341
14483
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14342
14484
|
}
|
|
@@ -14362,8 +14504,7 @@ const deserializeAws_restJson1PutAppInstanceStreamingConfigurationsCommandError
|
|
|
14362
14504
|
body: await parseBody(output.body, context),
|
|
14363
14505
|
};
|
|
14364
14506
|
let response;
|
|
14365
|
-
|
|
14366
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14367
14508
|
switch (errorCode) {
|
|
14368
14509
|
case "BadRequestException":
|
|
14369
14510
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14388,10 +14529,12 @@ const deserializeAws_restJson1PutAppInstanceStreamingConfigurationsCommandError
|
|
|
14388
14529
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14389
14530
|
default:
|
|
14390
14531
|
const parsedBody = parsedOutput.body;
|
|
14532
|
+
const $metadata = deserializeMetadata(output);
|
|
14533
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14391
14534
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14392
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14535
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14393
14536
|
$fault: "client",
|
|
14394
|
-
$metadata
|
|
14537
|
+
$metadata,
|
|
14395
14538
|
});
|
|
14396
14539
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14397
14540
|
}
|
|
@@ -14417,8 +14560,7 @@ const deserializeAws_restJson1PutEventsConfigurationCommandError = async (output
|
|
|
14417
14560
|
body: await parseBody(output.body, context),
|
|
14418
14561
|
};
|
|
14419
14562
|
let response;
|
|
14420
|
-
|
|
14421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14563
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14422
14564
|
switch (errorCode) {
|
|
14423
14565
|
case "BadRequestException":
|
|
14424
14566
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14443,10 +14585,12 @@ const deserializeAws_restJson1PutEventsConfigurationCommandError = async (output
|
|
|
14443
14585
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14444
14586
|
default:
|
|
14445
14587
|
const parsedBody = parsedOutput.body;
|
|
14588
|
+
const $metadata = deserializeMetadata(output);
|
|
14589
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14446
14590
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14447
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14448
14592
|
$fault: "client",
|
|
14449
|
-
$metadata
|
|
14593
|
+
$metadata,
|
|
14450
14594
|
});
|
|
14451
14595
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14452
14596
|
}
|
|
@@ -14476,8 +14620,7 @@ const deserializeAws_restJson1PutRetentionSettingsCommandError = async (output,
|
|
|
14476
14620
|
body: await parseBody(output.body, context),
|
|
14477
14621
|
};
|
|
14478
14622
|
let response;
|
|
14479
|
-
|
|
14480
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14481
14624
|
switch (errorCode) {
|
|
14482
14625
|
case "BadRequestException":
|
|
14483
14626
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14505,10 +14648,12 @@ const deserializeAws_restJson1PutRetentionSettingsCommandError = async (output,
|
|
|
14505
14648
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14506
14649
|
default:
|
|
14507
14650
|
const parsedBody = parsedOutput.body;
|
|
14651
|
+
const $metadata = deserializeMetadata(output);
|
|
14652
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14508
14653
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14654
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14510
14655
|
$fault: "client",
|
|
14511
|
-
$metadata
|
|
14656
|
+
$metadata,
|
|
14512
14657
|
});
|
|
14513
14658
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14514
14659
|
}
|
|
@@ -14535,8 +14680,7 @@ const deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandE
|
|
|
14535
14680
|
body: await parseBody(output.body, context),
|
|
14536
14681
|
};
|
|
14537
14682
|
let response;
|
|
14538
|
-
|
|
14539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14683
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14540
14684
|
switch (errorCode) {
|
|
14541
14685
|
case "BadRequestException":
|
|
14542
14686
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14561,10 +14705,12 @@ const deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandE
|
|
|
14561
14705
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14562
14706
|
default:
|
|
14563
14707
|
const parsedBody = parsedOutput.body;
|
|
14708
|
+
const $metadata = deserializeMetadata(output);
|
|
14709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14564
14710
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14711
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14566
14712
|
$fault: "client",
|
|
14567
|
-
$metadata
|
|
14713
|
+
$metadata,
|
|
14568
14714
|
});
|
|
14569
14715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14570
14716
|
}
|
|
@@ -14590,8 +14736,7 @@ const deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
14590
14736
|
body: await parseBody(output.body, context),
|
|
14591
14737
|
};
|
|
14592
14738
|
let response;
|
|
14593
|
-
|
|
14594
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14595
14740
|
switch (errorCode) {
|
|
14596
14741
|
case "BadRequestException":
|
|
14597
14742
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14616,10 +14761,12 @@ const deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
14616
14761
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14617
14762
|
default:
|
|
14618
14763
|
const parsedBody = parsedOutput.body;
|
|
14764
|
+
const $metadata = deserializeMetadata(output);
|
|
14765
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14619
14766
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14767
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14621
14768
|
$fault: "client",
|
|
14622
|
-
$metadata
|
|
14769
|
+
$metadata,
|
|
14623
14770
|
});
|
|
14624
14771
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14625
14772
|
}
|
|
@@ -14645,8 +14792,7 @@ const deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommandError
|
|
|
14645
14792
|
body: await parseBody(output.body, context),
|
|
14646
14793
|
};
|
|
14647
14794
|
let response;
|
|
14648
|
-
|
|
14649
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14795
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14650
14796
|
switch (errorCode) {
|
|
14651
14797
|
case "BadRequestException":
|
|
14652
14798
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14671,10 +14817,12 @@ const deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommandError
|
|
|
14671
14817
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14672
14818
|
default:
|
|
14673
14819
|
const parsedBody = parsedOutput.body;
|
|
14820
|
+
const $metadata = deserializeMetadata(output);
|
|
14821
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14674
14822
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14675
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14823
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14676
14824
|
$fault: "client",
|
|
14677
|
-
$metadata
|
|
14825
|
+
$metadata,
|
|
14678
14826
|
});
|
|
14679
14827
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14680
14828
|
}
|
|
@@ -14700,8 +14848,7 @@ const deserializeAws_restJson1PutVoiceConnectorOriginationCommandError = async (
|
|
|
14700
14848
|
body: await parseBody(output.body, context),
|
|
14701
14849
|
};
|
|
14702
14850
|
let response;
|
|
14703
|
-
|
|
14704
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14705
14852
|
switch (errorCode) {
|
|
14706
14853
|
case "BadRequestException":
|
|
14707
14854
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14726,10 +14873,12 @@ const deserializeAws_restJson1PutVoiceConnectorOriginationCommandError = async (
|
|
|
14726
14873
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14727
14874
|
default:
|
|
14728
14875
|
const parsedBody = parsedOutput.body;
|
|
14876
|
+
const $metadata = deserializeMetadata(output);
|
|
14877
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14729
14878
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14879
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14731
14880
|
$fault: "client",
|
|
14732
|
-
$metadata
|
|
14881
|
+
$metadata,
|
|
14733
14882
|
});
|
|
14734
14883
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14735
14884
|
}
|
|
@@ -14755,8 +14904,7 @@ const deserializeAws_restJson1PutVoiceConnectorProxyCommandError = async (output
|
|
|
14755
14904
|
body: await parseBody(output.body, context),
|
|
14756
14905
|
};
|
|
14757
14906
|
let response;
|
|
14758
|
-
|
|
14759
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14760
14908
|
switch (errorCode) {
|
|
14761
14909
|
case "AccessDeniedException":
|
|
14762
14910
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -14784,10 +14932,12 @@ const deserializeAws_restJson1PutVoiceConnectorProxyCommandError = async (output
|
|
|
14784
14932
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14785
14933
|
default:
|
|
14786
14934
|
const parsedBody = parsedOutput.body;
|
|
14935
|
+
const $metadata = deserializeMetadata(output);
|
|
14936
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14787
14937
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14788
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14938
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14789
14939
|
$fault: "client",
|
|
14790
|
-
$metadata
|
|
14940
|
+
$metadata,
|
|
14791
14941
|
});
|
|
14792
14942
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14793
14943
|
}
|
|
@@ -14813,8 +14963,7 @@ const deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandErro
|
|
|
14813
14963
|
body: await parseBody(output.body, context),
|
|
14814
14964
|
};
|
|
14815
14965
|
let response;
|
|
14816
|
-
|
|
14817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14818
14967
|
switch (errorCode) {
|
|
14819
14968
|
case "BadRequestException":
|
|
14820
14969
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14839,10 +14988,12 @@ const deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandErro
|
|
|
14839
14988
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14840
14989
|
default:
|
|
14841
14990
|
const parsedBody = parsedOutput.body;
|
|
14991
|
+
const $metadata = deserializeMetadata(output);
|
|
14992
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14842
14993
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14843
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
14994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14844
14995
|
$fault: "client",
|
|
14845
|
-
$metadata
|
|
14996
|
+
$metadata,
|
|
14846
14997
|
});
|
|
14847
14998
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14848
14999
|
}
|
|
@@ -14868,8 +15019,7 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCommandError = async (
|
|
|
14868
15019
|
body: await parseBody(output.body, context),
|
|
14869
15020
|
};
|
|
14870
15021
|
let response;
|
|
14871
|
-
|
|
14872
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14873
15023
|
switch (errorCode) {
|
|
14874
15024
|
case "AccessDeniedException":
|
|
14875
15025
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -14897,10 +15047,12 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCommandError = async (
|
|
|
14897
15047
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14898
15048
|
default:
|
|
14899
15049
|
const parsedBody = parsedOutput.body;
|
|
15050
|
+
const $metadata = deserializeMetadata(output);
|
|
15051
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14900
15052
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14901
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14902
15054
|
$fault: "client",
|
|
14903
|
-
$metadata
|
|
15055
|
+
$metadata,
|
|
14904
15056
|
});
|
|
14905
15057
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14906
15058
|
}
|
|
@@ -14922,8 +15074,7 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommandErro
|
|
|
14922
15074
|
body: await parseBody(output.body, context),
|
|
14923
15075
|
};
|
|
14924
15076
|
let response;
|
|
14925
|
-
|
|
14926
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14927
15078
|
switch (errorCode) {
|
|
14928
15079
|
case "BadRequestException":
|
|
14929
15080
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -14948,10 +15099,12 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommandErro
|
|
|
14948
15099
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
14949
15100
|
default:
|
|
14950
15101
|
const parsedBody = parsedOutput.body;
|
|
15102
|
+
const $metadata = deserializeMetadata(output);
|
|
15103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
14951
15104
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
14952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
14953
15106
|
$fault: "client",
|
|
14954
|
-
$metadata
|
|
15107
|
+
$metadata,
|
|
14955
15108
|
});
|
|
14956
15109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
14957
15110
|
}
|
|
@@ -14981,8 +15134,7 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
14981
15134
|
body: await parseBody(output.body, context),
|
|
14982
15135
|
};
|
|
14983
15136
|
let response;
|
|
14984
|
-
|
|
14985
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15137
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14986
15138
|
switch (errorCode) {
|
|
14987
15139
|
case "BadRequestException":
|
|
14988
15140
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15004,10 +15156,12 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
15004
15156
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15005
15157
|
default:
|
|
15006
15158
|
const parsedBody = parsedOutput.body;
|
|
15159
|
+
const $metadata = deserializeMetadata(output);
|
|
15160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15007
15161
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15009
15163
|
$fault: "client",
|
|
15010
|
-
$metadata
|
|
15164
|
+
$metadata,
|
|
15011
15165
|
});
|
|
15012
15166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15013
15167
|
}
|
|
@@ -15029,8 +15183,7 @@ const deserializeAws_restJson1RedactConversationMessageCommandError = async (out
|
|
|
15029
15183
|
body: await parseBody(output.body, context),
|
|
15030
15184
|
};
|
|
15031
15185
|
let response;
|
|
15032
|
-
|
|
15033
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15186
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15034
15187
|
switch (errorCode) {
|
|
15035
15188
|
case "BadRequestException":
|
|
15036
15189
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15055,10 +15208,12 @@ const deserializeAws_restJson1RedactConversationMessageCommandError = async (out
|
|
|
15055
15208
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15056
15209
|
default:
|
|
15057
15210
|
const parsedBody = parsedOutput.body;
|
|
15211
|
+
const $metadata = deserializeMetadata(output);
|
|
15212
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15058
15213
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15214
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15060
15215
|
$fault: "client",
|
|
15061
|
-
$metadata
|
|
15216
|
+
$metadata,
|
|
15062
15217
|
});
|
|
15063
15218
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15064
15219
|
}
|
|
@@ -15080,8 +15235,7 @@ const deserializeAws_restJson1RedactRoomMessageCommandError = async (output, con
|
|
|
15080
15235
|
body: await parseBody(output.body, context),
|
|
15081
15236
|
};
|
|
15082
15237
|
let response;
|
|
15083
|
-
|
|
15084
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15238
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15085
15239
|
switch (errorCode) {
|
|
15086
15240
|
case "BadRequestException":
|
|
15087
15241
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15106,10 +15260,12 @@ const deserializeAws_restJson1RedactRoomMessageCommandError = async (output, con
|
|
|
15106
15260
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15107
15261
|
default:
|
|
15108
15262
|
const parsedBody = parsedOutput.body;
|
|
15263
|
+
const $metadata = deserializeMetadata(output);
|
|
15264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15109
15265
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15110
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15111
15267
|
$fault: "client",
|
|
15112
|
-
$metadata
|
|
15268
|
+
$metadata,
|
|
15113
15269
|
});
|
|
15114
15270
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15115
15271
|
}
|
|
@@ -15135,8 +15291,7 @@ const deserializeAws_restJson1RegenerateSecurityTokenCommandError = async (outpu
|
|
|
15135
15291
|
body: await parseBody(output.body, context),
|
|
15136
15292
|
};
|
|
15137
15293
|
let response;
|
|
15138
|
-
|
|
15139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15294
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15140
15295
|
switch (errorCode) {
|
|
15141
15296
|
case "BadRequestException":
|
|
15142
15297
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15161,10 +15316,12 @@ const deserializeAws_restJson1RegenerateSecurityTokenCommandError = async (outpu
|
|
|
15161
15316
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15162
15317
|
default:
|
|
15163
15318
|
const parsedBody = parsedOutput.body;
|
|
15319
|
+
const $metadata = deserializeMetadata(output);
|
|
15320
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15164
15321
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15165
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15322
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15166
15323
|
$fault: "client",
|
|
15167
|
-
$metadata
|
|
15324
|
+
$metadata,
|
|
15168
15325
|
});
|
|
15169
15326
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15170
15327
|
}
|
|
@@ -15190,8 +15347,7 @@ const deserializeAws_restJson1ResetPersonalPINCommandError = async (output, cont
|
|
|
15190
15347
|
body: await parseBody(output.body, context),
|
|
15191
15348
|
};
|
|
15192
15349
|
let response;
|
|
15193
|
-
|
|
15194
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15195
15351
|
switch (errorCode) {
|
|
15196
15352
|
case "BadRequestException":
|
|
15197
15353
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15216,10 +15372,12 @@ const deserializeAws_restJson1ResetPersonalPINCommandError = async (output, cont
|
|
|
15216
15372
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15217
15373
|
default:
|
|
15218
15374
|
const parsedBody = parsedOutput.body;
|
|
15375
|
+
const $metadata = deserializeMetadata(output);
|
|
15376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15219
15377
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15220
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15221
15379
|
$fault: "client",
|
|
15222
|
-
$metadata
|
|
15380
|
+
$metadata,
|
|
15223
15381
|
});
|
|
15224
15382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15225
15383
|
}
|
|
@@ -15245,8 +15403,7 @@ const deserializeAws_restJson1RestorePhoneNumberCommandError = async (output, co
|
|
|
15245
15403
|
body: await parseBody(output.body, context),
|
|
15246
15404
|
};
|
|
15247
15405
|
let response;
|
|
15248
|
-
|
|
15249
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15406
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15250
15407
|
switch (errorCode) {
|
|
15251
15408
|
case "BadRequestException":
|
|
15252
15409
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15274,10 +15431,12 @@ const deserializeAws_restJson1RestorePhoneNumberCommandError = async (output, co
|
|
|
15274
15431
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15275
15432
|
default:
|
|
15276
15433
|
const parsedBody = parsedOutput.body;
|
|
15434
|
+
const $metadata = deserializeMetadata(output);
|
|
15435
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15277
15436
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15279
15438
|
$fault: "client",
|
|
15280
|
-
$metadata
|
|
15439
|
+
$metadata,
|
|
15281
15440
|
});
|
|
15282
15441
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15283
15442
|
}
|
|
@@ -15307,8 +15466,7 @@ const deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = async (o
|
|
|
15307
15466
|
body: await parseBody(output.body, context),
|
|
15308
15467
|
};
|
|
15309
15468
|
let response;
|
|
15310
|
-
|
|
15311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15312
15470
|
switch (errorCode) {
|
|
15313
15471
|
case "AccessDeniedException":
|
|
15314
15472
|
case "com.amazonaws.chime#AccessDeniedException":
|
|
@@ -15333,10 +15491,12 @@ const deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = async (o
|
|
|
15333
15491
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15334
15492
|
default:
|
|
15335
15493
|
const parsedBody = parsedOutput.body;
|
|
15494
|
+
const $metadata = deserializeMetadata(output);
|
|
15495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15336
15496
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15337
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15338
15498
|
$fault: "client",
|
|
15339
|
-
$metadata
|
|
15499
|
+
$metadata,
|
|
15340
15500
|
});
|
|
15341
15501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15342
15502
|
}
|
|
@@ -15366,8 +15526,7 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
15366
15526
|
body: await parseBody(output.body, context),
|
|
15367
15527
|
};
|
|
15368
15528
|
let response;
|
|
15369
|
-
|
|
15370
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15371
15530
|
switch (errorCode) {
|
|
15372
15531
|
case "BadRequestException":
|
|
15373
15532
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15392,10 +15551,12 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
15392
15551
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15393
15552
|
default:
|
|
15394
15553
|
const parsedBody = parsedOutput.body;
|
|
15554
|
+
const $metadata = deserializeMetadata(output);
|
|
15555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15395
15556
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15397
15558
|
$fault: "client",
|
|
15398
|
-
$metadata
|
|
15559
|
+
$metadata,
|
|
15399
15560
|
});
|
|
15400
15561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15401
15562
|
}
|
|
@@ -15417,8 +15578,7 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
15417
15578
|
body: await parseBody(output.body, context),
|
|
15418
15579
|
};
|
|
15419
15580
|
let response;
|
|
15420
|
-
|
|
15421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15422
15582
|
switch (errorCode) {
|
|
15423
15583
|
case "BadRequestException":
|
|
15424
15584
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15449,10 +15609,12 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
15449
15609
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
15450
15610
|
default:
|
|
15451
15611
|
const parsedBody = parsedOutput.body;
|
|
15612
|
+
const $metadata = deserializeMetadata(output);
|
|
15613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15452
15614
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15454
15616
|
$fault: "client",
|
|
15455
|
-
$metadata
|
|
15617
|
+
$metadata,
|
|
15456
15618
|
});
|
|
15457
15619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15458
15620
|
}
|
|
@@ -15474,8 +15636,7 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
15474
15636
|
body: await parseBody(output.body, context),
|
|
15475
15637
|
};
|
|
15476
15638
|
let response;
|
|
15477
|
-
|
|
15478
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15479
15640
|
switch (errorCode) {
|
|
15480
15641
|
case "BadRequestException":
|
|
15481
15642
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15503,10 +15664,12 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
15503
15664
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
15504
15665
|
default:
|
|
15505
15666
|
const parsedBody = parsedOutput.body;
|
|
15667
|
+
const $metadata = deserializeMetadata(output);
|
|
15668
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15506
15669
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15670
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15508
15671
|
$fault: "client",
|
|
15509
|
-
$metadata
|
|
15672
|
+
$metadata,
|
|
15510
15673
|
});
|
|
15511
15674
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15512
15675
|
}
|
|
@@ -15528,8 +15691,7 @@ const deserializeAws_restJson1TagAttendeeCommandError = async (output, context)
|
|
|
15528
15691
|
body: await parseBody(output.body, context),
|
|
15529
15692
|
};
|
|
15530
15693
|
let response;
|
|
15531
|
-
|
|
15532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15694
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15533
15695
|
switch (errorCode) {
|
|
15534
15696
|
case "BadRequestException":
|
|
15535
15697
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15557,10 +15719,12 @@ const deserializeAws_restJson1TagAttendeeCommandError = async (output, context)
|
|
|
15557
15719
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15558
15720
|
default:
|
|
15559
15721
|
const parsedBody = parsedOutput.body;
|
|
15722
|
+
const $metadata = deserializeMetadata(output);
|
|
15723
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15560
15724
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15561
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15725
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15562
15726
|
$fault: "client",
|
|
15563
|
-
$metadata
|
|
15727
|
+
$metadata,
|
|
15564
15728
|
});
|
|
15565
15729
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15566
15730
|
}
|
|
@@ -15582,8 +15746,7 @@ const deserializeAws_restJson1TagMeetingCommandError = async (output, context) =
|
|
|
15582
15746
|
body: await parseBody(output.body, context),
|
|
15583
15747
|
};
|
|
15584
15748
|
let response;
|
|
15585
|
-
|
|
15586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15587
15750
|
switch (errorCode) {
|
|
15588
15751
|
case "BadRequestException":
|
|
15589
15752
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15611,10 +15774,12 @@ const deserializeAws_restJson1TagMeetingCommandError = async (output, context) =
|
|
|
15611
15774
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15612
15775
|
default:
|
|
15613
15776
|
const parsedBody = parsedOutput.body;
|
|
15777
|
+
const $metadata = deserializeMetadata(output);
|
|
15778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15614
15779
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15615
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15616
15781
|
$fault: "client",
|
|
15617
|
-
$metadata
|
|
15782
|
+
$metadata,
|
|
15618
15783
|
});
|
|
15619
15784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15620
15785
|
}
|
|
@@ -15636,8 +15801,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
15636
15801
|
body: await parseBody(output.body, context),
|
|
15637
15802
|
};
|
|
15638
15803
|
let response;
|
|
15639
|
-
|
|
15640
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15641
15805
|
switch (errorCode) {
|
|
15642
15806
|
case "BadRequestException":
|
|
15643
15807
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15659,10 +15823,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
15659
15823
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15660
15824
|
default:
|
|
15661
15825
|
const parsedBody = parsedOutput.body;
|
|
15826
|
+
const $metadata = deserializeMetadata(output);
|
|
15827
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15662
15828
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15663
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15829
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15664
15830
|
$fault: "client",
|
|
15665
|
-
$metadata
|
|
15831
|
+
$metadata,
|
|
15666
15832
|
});
|
|
15667
15833
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15668
15834
|
}
|
|
@@ -15684,8 +15850,7 @@ const deserializeAws_restJson1UntagAttendeeCommandError = async (output, context
|
|
|
15684
15850
|
body: await parseBody(output.body, context),
|
|
15685
15851
|
};
|
|
15686
15852
|
let response;
|
|
15687
|
-
|
|
15688
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15853
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15689
15854
|
switch (errorCode) {
|
|
15690
15855
|
case "BadRequestException":
|
|
15691
15856
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15710,10 +15875,12 @@ const deserializeAws_restJson1UntagAttendeeCommandError = async (output, context
|
|
|
15710
15875
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15711
15876
|
default:
|
|
15712
15877
|
const parsedBody = parsedOutput.body;
|
|
15878
|
+
const $metadata = deserializeMetadata(output);
|
|
15879
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15713
15880
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15715
15882
|
$fault: "client",
|
|
15716
|
-
$metadata
|
|
15883
|
+
$metadata,
|
|
15717
15884
|
});
|
|
15718
15885
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15719
15886
|
}
|
|
@@ -15735,8 +15902,7 @@ const deserializeAws_restJson1UntagMeetingCommandError = async (output, context)
|
|
|
15735
15902
|
body: await parseBody(output.body, context),
|
|
15736
15903
|
};
|
|
15737
15904
|
let response;
|
|
15738
|
-
|
|
15739
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15740
15906
|
switch (errorCode) {
|
|
15741
15907
|
case "BadRequestException":
|
|
15742
15908
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15761,10 +15927,12 @@ const deserializeAws_restJson1UntagMeetingCommandError = async (output, context)
|
|
|
15761
15927
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15762
15928
|
default:
|
|
15763
15929
|
const parsedBody = parsedOutput.body;
|
|
15930
|
+
const $metadata = deserializeMetadata(output);
|
|
15931
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15764
15932
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15933
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15766
15934
|
$fault: "client",
|
|
15767
|
-
$metadata
|
|
15935
|
+
$metadata,
|
|
15768
15936
|
});
|
|
15769
15937
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15770
15938
|
}
|
|
@@ -15786,8 +15954,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
15786
15954
|
body: await parseBody(output.body, context),
|
|
15787
15955
|
};
|
|
15788
15956
|
let response;
|
|
15789
|
-
|
|
15790
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15791
15958
|
switch (errorCode) {
|
|
15792
15959
|
case "BadRequestException":
|
|
15793
15960
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15809,10 +15976,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
15809
15976
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15810
15977
|
default:
|
|
15811
15978
|
const parsedBody = parsedOutput.body;
|
|
15979
|
+
const $metadata = deserializeMetadata(output);
|
|
15980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15812
15981
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
15982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15814
15983
|
$fault: "client",
|
|
15815
|
-
$metadata
|
|
15984
|
+
$metadata,
|
|
15816
15985
|
});
|
|
15817
15986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15818
15987
|
}
|
|
@@ -15838,8 +16007,7 @@ const deserializeAws_restJson1UpdateAccountCommandError = async (output, context
|
|
|
15838
16007
|
body: await parseBody(output.body, context),
|
|
15839
16008
|
};
|
|
15840
16009
|
let response;
|
|
15841
|
-
|
|
15842
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16010
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15843
16011
|
switch (errorCode) {
|
|
15844
16012
|
case "BadRequestException":
|
|
15845
16013
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15864,10 +16032,12 @@ const deserializeAws_restJson1UpdateAccountCommandError = async (output, context
|
|
|
15864
16032
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15865
16033
|
default:
|
|
15866
16034
|
const parsedBody = parsedOutput.body;
|
|
16035
|
+
const $metadata = deserializeMetadata(output);
|
|
16036
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15867
16037
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16038
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15869
16039
|
$fault: "client",
|
|
15870
|
-
$metadata
|
|
16040
|
+
$metadata,
|
|
15871
16041
|
});
|
|
15872
16042
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15873
16043
|
}
|
|
@@ -15889,8 +16059,7 @@ const deserializeAws_restJson1UpdateAccountSettingsCommandError = async (output,
|
|
|
15889
16059
|
body: await parseBody(output.body, context),
|
|
15890
16060
|
};
|
|
15891
16061
|
let response;
|
|
15892
|
-
|
|
15893
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15894
16063
|
switch (errorCode) {
|
|
15895
16064
|
case "BadRequestException":
|
|
15896
16065
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15918,10 +16087,12 @@ const deserializeAws_restJson1UpdateAccountSettingsCommandError = async (output,
|
|
|
15918
16087
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15919
16088
|
default:
|
|
15920
16089
|
const parsedBody = parsedOutput.body;
|
|
16090
|
+
const $metadata = deserializeMetadata(output);
|
|
16091
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15921
16092
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16093
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15923
16094
|
$fault: "client",
|
|
15924
|
-
$metadata
|
|
16095
|
+
$metadata,
|
|
15925
16096
|
});
|
|
15926
16097
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15927
16098
|
}
|
|
@@ -15947,8 +16118,7 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
15947
16118
|
body: await parseBody(output.body, context),
|
|
15948
16119
|
};
|
|
15949
16120
|
let response;
|
|
15950
|
-
|
|
15951
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15952
16122
|
switch (errorCode) {
|
|
15953
16123
|
case "BadRequestException":
|
|
15954
16124
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -15973,10 +16143,12 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
15973
16143
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
15974
16144
|
default:
|
|
15975
16145
|
const parsedBody = parsedOutput.body;
|
|
16146
|
+
const $metadata = deserializeMetadata(output);
|
|
16147
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
15976
16148
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
15977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16149
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
15978
16150
|
$fault: "client",
|
|
15979
|
-
$metadata
|
|
16151
|
+
$metadata,
|
|
15980
16152
|
});
|
|
15981
16153
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
15982
16154
|
}
|
|
@@ -16002,8 +16174,7 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output,
|
|
|
16002
16174
|
body: await parseBody(output.body, context),
|
|
16003
16175
|
};
|
|
16004
16176
|
let response;
|
|
16005
|
-
|
|
16006
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16007
16178
|
switch (errorCode) {
|
|
16008
16179
|
case "BadRequestException":
|
|
16009
16180
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16028,10 +16199,12 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output,
|
|
|
16028
16199
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16029
16200
|
default:
|
|
16030
16201
|
const parsedBody = parsedOutput.body;
|
|
16202
|
+
const $metadata = deserializeMetadata(output);
|
|
16203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16031
16204
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16033
16206
|
$fault: "client",
|
|
16034
|
-
$metadata
|
|
16207
|
+
$metadata,
|
|
16035
16208
|
});
|
|
16036
16209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16037
16210
|
}
|
|
@@ -16057,8 +16230,7 @@ const deserializeAws_restJson1UpdateBotCommandError = async (output, context) =>
|
|
|
16057
16230
|
body: await parseBody(output.body, context),
|
|
16058
16231
|
};
|
|
16059
16232
|
let response;
|
|
16060
|
-
|
|
16061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16233
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16062
16234
|
switch (errorCode) {
|
|
16063
16235
|
case "BadRequestException":
|
|
16064
16236
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16083,10 +16255,12 @@ const deserializeAws_restJson1UpdateBotCommandError = async (output, context) =>
|
|
|
16083
16255
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16084
16256
|
default:
|
|
16085
16257
|
const parsedBody = parsedOutput.body;
|
|
16258
|
+
const $metadata = deserializeMetadata(output);
|
|
16259
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16086
16260
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16087
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16261
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16088
16262
|
$fault: "client",
|
|
16089
|
-
$metadata
|
|
16263
|
+
$metadata,
|
|
16090
16264
|
});
|
|
16091
16265
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16092
16266
|
}
|
|
@@ -16112,8 +16286,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
16112
16286
|
body: await parseBody(output.body, context),
|
|
16113
16287
|
};
|
|
16114
16288
|
let response;
|
|
16115
|
-
|
|
16116
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16289
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16117
16290
|
switch (errorCode) {
|
|
16118
16291
|
case "BadRequestException":
|
|
16119
16292
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16138,10 +16311,12 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
16138
16311
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16139
16312
|
default:
|
|
16140
16313
|
const parsedBody = parsedOutput.body;
|
|
16314
|
+
const $metadata = deserializeMetadata(output);
|
|
16315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16141
16316
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16142
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16143
16318
|
$fault: "client",
|
|
16144
|
-
$metadata
|
|
16319
|
+
$metadata,
|
|
16145
16320
|
});
|
|
16146
16321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16147
16322
|
}
|
|
@@ -16171,8 +16346,7 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
16171
16346
|
body: await parseBody(output.body, context),
|
|
16172
16347
|
};
|
|
16173
16348
|
let response;
|
|
16174
|
-
|
|
16175
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16176
16350
|
switch (errorCode) {
|
|
16177
16351
|
case "BadRequestException":
|
|
16178
16352
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16197,10 +16371,12 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
16197
16371
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16198
16372
|
default:
|
|
16199
16373
|
const parsedBody = parsedOutput.body;
|
|
16374
|
+
const $metadata = deserializeMetadata(output);
|
|
16375
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16200
16376
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16201
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16377
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16202
16378
|
$fault: "client",
|
|
16203
|
-
$metadata
|
|
16379
|
+
$metadata,
|
|
16204
16380
|
});
|
|
16205
16381
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16206
16382
|
}
|
|
@@ -16226,8 +16402,7 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
16226
16402
|
body: await parseBody(output.body, context),
|
|
16227
16403
|
};
|
|
16228
16404
|
let response;
|
|
16229
|
-
|
|
16230
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16231
16406
|
switch (errorCode) {
|
|
16232
16407
|
case "BadRequestException":
|
|
16233
16408
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16252,10 +16427,12 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
16252
16427
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16253
16428
|
default:
|
|
16254
16429
|
const parsedBody = parsedOutput.body;
|
|
16430
|
+
const $metadata = deserializeMetadata(output);
|
|
16431
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16255
16432
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16257
16434
|
$fault: "client",
|
|
16258
|
-
$metadata
|
|
16435
|
+
$metadata,
|
|
16259
16436
|
});
|
|
16260
16437
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16261
16438
|
}
|
|
@@ -16277,8 +16454,7 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
16277
16454
|
body: await parseBody(output.body, context),
|
|
16278
16455
|
};
|
|
16279
16456
|
let response;
|
|
16280
|
-
|
|
16281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16282
16458
|
switch (errorCode) {
|
|
16283
16459
|
case "BadRequestException":
|
|
16284
16460
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16300,10 +16476,12 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
16300
16476
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16301
16477
|
default:
|
|
16302
16478
|
const parsedBody = parsedOutput.body;
|
|
16479
|
+
const $metadata = deserializeMetadata(output);
|
|
16480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16303
16481
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16305
16483
|
$fault: "client",
|
|
16306
|
-
$metadata
|
|
16484
|
+
$metadata,
|
|
16307
16485
|
});
|
|
16308
16486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16309
16487
|
}
|
|
@@ -16329,8 +16507,7 @@ const deserializeAws_restJson1UpdatePhoneNumberCommandError = async (output, con
|
|
|
16329
16507
|
body: await parseBody(output.body, context),
|
|
16330
16508
|
};
|
|
16331
16509
|
let response;
|
|
16332
|
-
|
|
16333
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16510
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16334
16511
|
switch (errorCode) {
|
|
16335
16512
|
case "BadRequestException":
|
|
16336
16513
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16358,10 +16535,12 @@ const deserializeAws_restJson1UpdatePhoneNumberCommandError = async (output, con
|
|
|
16358
16535
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16359
16536
|
default:
|
|
16360
16537
|
const parsedBody = parsedOutput.body;
|
|
16538
|
+
const $metadata = deserializeMetadata(output);
|
|
16539
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16361
16540
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16541
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16363
16542
|
$fault: "client",
|
|
16364
|
-
$metadata
|
|
16543
|
+
$metadata,
|
|
16365
16544
|
});
|
|
16366
16545
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16367
16546
|
}
|
|
@@ -16383,8 +16562,7 @@ const deserializeAws_restJson1UpdatePhoneNumberSettingsCommandError = async (out
|
|
|
16383
16562
|
body: await parseBody(output.body, context),
|
|
16384
16563
|
};
|
|
16385
16564
|
let response;
|
|
16386
|
-
|
|
16387
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16565
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16388
16566
|
switch (errorCode) {
|
|
16389
16567
|
case "BadRequestException":
|
|
16390
16568
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16406,10 +16584,12 @@ const deserializeAws_restJson1UpdatePhoneNumberSettingsCommandError = async (out
|
|
|
16406
16584
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16407
16585
|
default:
|
|
16408
16586
|
const parsedBody = parsedOutput.body;
|
|
16587
|
+
const $metadata = deserializeMetadata(output);
|
|
16588
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16409
16589
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16410
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16590
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16411
16591
|
$fault: "client",
|
|
16412
|
-
$metadata
|
|
16592
|
+
$metadata,
|
|
16413
16593
|
});
|
|
16414
16594
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16415
16595
|
}
|
|
@@ -16435,8 +16615,7 @@ const deserializeAws_restJson1UpdateProxySessionCommandError = async (output, co
|
|
|
16435
16615
|
body: await parseBody(output.body, context),
|
|
16436
16616
|
};
|
|
16437
16617
|
let response;
|
|
16438
|
-
|
|
16439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16618
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16440
16619
|
switch (errorCode) {
|
|
16441
16620
|
case "BadRequestException":
|
|
16442
16621
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16461,10 +16640,12 @@ const deserializeAws_restJson1UpdateProxySessionCommandError = async (output, co
|
|
|
16461
16640
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16462
16641
|
default:
|
|
16463
16642
|
const parsedBody = parsedOutput.body;
|
|
16643
|
+
const $metadata = deserializeMetadata(output);
|
|
16644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16464
16645
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16465
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16466
16647
|
$fault: "client",
|
|
16467
|
-
$metadata
|
|
16648
|
+
$metadata,
|
|
16468
16649
|
});
|
|
16469
16650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16470
16651
|
}
|
|
@@ -16490,8 +16671,7 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
|
|
|
16490
16671
|
body: await parseBody(output.body, context),
|
|
16491
16672
|
};
|
|
16492
16673
|
let response;
|
|
16493
|
-
|
|
16494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16495
16675
|
switch (errorCode) {
|
|
16496
16676
|
case "BadRequestException":
|
|
16497
16677
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16516,10 +16696,12 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
|
|
|
16516
16696
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16517
16697
|
default:
|
|
16518
16698
|
const parsedBody = parsedOutput.body;
|
|
16699
|
+
const $metadata = deserializeMetadata(output);
|
|
16700
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16519
16701
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16521
16703
|
$fault: "client",
|
|
16522
|
-
$metadata
|
|
16704
|
+
$metadata,
|
|
16523
16705
|
});
|
|
16524
16706
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16525
16707
|
}
|
|
@@ -16545,8 +16727,7 @@ const deserializeAws_restJson1UpdateRoomMembershipCommandError = async (output,
|
|
|
16545
16727
|
body: await parseBody(output.body, context),
|
|
16546
16728
|
};
|
|
16547
16729
|
let response;
|
|
16548
|
-
|
|
16549
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16550
16731
|
switch (errorCode) {
|
|
16551
16732
|
case "BadRequestException":
|
|
16552
16733
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16571,10 +16752,12 @@ const deserializeAws_restJson1UpdateRoomMembershipCommandError = async (output,
|
|
|
16571
16752
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16572
16753
|
default:
|
|
16573
16754
|
const parsedBody = parsedOutput.body;
|
|
16755
|
+
const $metadata = deserializeMetadata(output);
|
|
16756
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16574
16757
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16576
16759
|
$fault: "client",
|
|
16577
|
-
$metadata
|
|
16760
|
+
$metadata,
|
|
16578
16761
|
});
|
|
16579
16762
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16580
16763
|
}
|
|
@@ -16600,8 +16783,7 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCommandError = async (out
|
|
|
16600
16783
|
body: await parseBody(output.body, context),
|
|
16601
16784
|
};
|
|
16602
16785
|
let response;
|
|
16603
|
-
|
|
16604
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16605
16787
|
switch (errorCode) {
|
|
16606
16788
|
case "BadRequestException":
|
|
16607
16789
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16629,10 +16811,12 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCommandError = async (out
|
|
|
16629
16811
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16630
16812
|
default:
|
|
16631
16813
|
const parsedBody = parsedOutput.body;
|
|
16814
|
+
const $metadata = deserializeMetadata(output);
|
|
16815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16632
16816
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16634
16818
|
$fault: "client",
|
|
16635
|
-
$metadata
|
|
16819
|
+
$metadata,
|
|
16636
16820
|
});
|
|
16637
16821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16638
16822
|
}
|
|
@@ -16658,8 +16842,7 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError = async
|
|
|
16658
16842
|
body: await parseBody(output.body, context),
|
|
16659
16843
|
};
|
|
16660
16844
|
let response;
|
|
16661
|
-
|
|
16662
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16663
16846
|
switch (errorCode) {
|
|
16664
16847
|
case "BadRequestException":
|
|
16665
16848
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16687,10 +16870,12 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError = async
|
|
|
16687
16870
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16688
16871
|
default:
|
|
16689
16872
|
const parsedBody = parsedOutput.body;
|
|
16873
|
+
const $metadata = deserializeMetadata(output);
|
|
16874
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16690
16875
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16691
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16876
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16692
16877
|
$fault: "client",
|
|
16693
|
-
$metadata
|
|
16878
|
+
$metadata,
|
|
16694
16879
|
});
|
|
16695
16880
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16696
16881
|
}
|
|
@@ -16716,8 +16901,7 @@ const deserializeAws_restJson1UpdateSipRuleCommandError = async (output, context
|
|
|
16716
16901
|
body: await parseBody(output.body, context),
|
|
16717
16902
|
};
|
|
16718
16903
|
let response;
|
|
16719
|
-
|
|
16720
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16721
16905
|
switch (errorCode) {
|
|
16722
16906
|
case "BadRequestException":
|
|
16723
16907
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16748,10 +16932,12 @@ const deserializeAws_restJson1UpdateSipRuleCommandError = async (output, context
|
|
|
16748
16932
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16749
16933
|
default:
|
|
16750
16934
|
const parsedBody = parsedOutput.body;
|
|
16935
|
+
const $metadata = deserializeMetadata(output);
|
|
16936
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16751
16937
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16752
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16938
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16753
16939
|
$fault: "client",
|
|
16754
|
-
$metadata
|
|
16940
|
+
$metadata,
|
|
16755
16941
|
});
|
|
16756
16942
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16757
16943
|
}
|
|
@@ -16777,8 +16963,7 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
16777
16963
|
body: await parseBody(output.body, context),
|
|
16778
16964
|
};
|
|
16779
16965
|
let response;
|
|
16780
|
-
|
|
16781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16782
16967
|
switch (errorCode) {
|
|
16783
16968
|
case "BadRequestException":
|
|
16784
16969
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16803,10 +16988,12 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
16803
16988
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16804
16989
|
default:
|
|
16805
16990
|
const parsedBody = parsedOutput.body;
|
|
16991
|
+
const $metadata = deserializeMetadata(output);
|
|
16992
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16806
16993
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16807
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
16994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16808
16995
|
$fault: "client",
|
|
16809
|
-
$metadata
|
|
16996
|
+
$metadata,
|
|
16810
16997
|
});
|
|
16811
16998
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16812
16999
|
}
|
|
@@ -16828,8 +17015,7 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
16828
17015
|
body: await parseBody(output.body, context),
|
|
16829
17016
|
};
|
|
16830
17017
|
let response;
|
|
16831
|
-
|
|
16832
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
17018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16833
17019
|
switch (errorCode) {
|
|
16834
17020
|
case "BadRequestException":
|
|
16835
17021
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16854,10 +17040,12 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
16854
17040
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16855
17041
|
default:
|
|
16856
17042
|
const parsedBody = parsedOutput.body;
|
|
17043
|
+
const $metadata = deserializeMetadata(output);
|
|
17044
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16857
17045
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16858
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
17046
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16859
17047
|
$fault: "client",
|
|
16860
|
-
$metadata
|
|
17048
|
+
$metadata,
|
|
16861
17049
|
});
|
|
16862
17050
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16863
17051
|
}
|
|
@@ -16883,8 +17071,7 @@ const deserializeAws_restJson1UpdateVoiceConnectorCommandError = async (output,
|
|
|
16883
17071
|
body: await parseBody(output.body, context),
|
|
16884
17072
|
};
|
|
16885
17073
|
let response;
|
|
16886
|
-
|
|
16887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
17074
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16888
17075
|
switch (errorCode) {
|
|
16889
17076
|
case "BadRequestException":
|
|
16890
17077
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16909,10 +17096,12 @@ const deserializeAws_restJson1UpdateVoiceConnectorCommandError = async (output,
|
|
|
16909
17096
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16910
17097
|
default:
|
|
16911
17098
|
const parsedBody = parsedOutput.body;
|
|
17099
|
+
const $metadata = deserializeMetadata(output);
|
|
17100
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16912
17101
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16913
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
17102
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16914
17103
|
$fault: "client",
|
|
16915
|
-
$metadata
|
|
17104
|
+
$metadata,
|
|
16916
17105
|
});
|
|
16917
17106
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16918
17107
|
}
|
|
@@ -16938,8 +17127,7 @@ const deserializeAws_restJson1UpdateVoiceConnectorGroupCommandError = async (out
|
|
|
16938
17127
|
body: await parseBody(output.body, context),
|
|
16939
17128
|
};
|
|
16940
17129
|
let response;
|
|
16941
|
-
|
|
16942
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
17130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16943
17131
|
switch (errorCode) {
|
|
16944
17132
|
case "BadRequestException":
|
|
16945
17133
|
case "com.amazonaws.chime#BadRequestException":
|
|
@@ -16967,10 +17155,12 @@ const deserializeAws_restJson1UpdateVoiceConnectorGroupCommandError = async (out
|
|
|
16967
17155
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
16968
17156
|
default:
|
|
16969
17157
|
const parsedBody = parsedOutput.body;
|
|
17158
|
+
const $metadata = deserializeMetadata(output);
|
|
17159
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
16970
17160
|
response = new ChimeServiceException_1.ChimeServiceException({
|
|
16971
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
17161
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
16972
17162
|
$fault: "client",
|
|
16973
|
-
$metadata
|
|
17163
|
+
$metadata,
|
|
16974
17164
|
});
|
|
16975
17165
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
16976
17166
|
}
|
|
@@ -19367,5 +19557,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
19367
19557
|
if (data["__type"] !== undefined) {
|
|
19368
19558
|
return sanitizeErrorCode(data["__type"]);
|
|
19369
19559
|
}
|
|
19370
|
-
return "";
|
|
19371
19560
|
};
|