@aws-sdk/client-api-gateway 3.118.1 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +600 -481
- package/dist-es/protocols/Aws_restJson1.js +600 -481
- package/package.json +3 -3
|
@@ -4651,8 +4651,7 @@ const deserializeAws_restJson1CreateApiKeyCommandError = async (output, context)
|
|
|
4651
4651
|
body: await parseBody(output.body, context),
|
|
4652
4652
|
};
|
|
4653
4653
|
let response;
|
|
4654
|
-
|
|
4655
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4654
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4656
4655
|
switch (errorCode) {
|
|
4657
4656
|
case "BadRequestException":
|
|
4658
4657
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4674,10 +4673,12 @@ const deserializeAws_restJson1CreateApiKeyCommandError = async (output, context)
|
|
|
4674
4673
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4675
4674
|
default:
|
|
4676
4675
|
const parsedBody = parsedOutput.body;
|
|
4676
|
+
const $metadata = deserializeMetadata(output);
|
|
4677
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4677
4678
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4678
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4679
4680
|
$fault: "client",
|
|
4680
|
-
$metadata
|
|
4681
|
+
$metadata,
|
|
4681
4682
|
});
|
|
4682
4683
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4683
4684
|
}
|
|
@@ -4739,8 +4740,7 @@ const deserializeAws_restJson1CreateAuthorizerCommandError = async (output, cont
|
|
|
4739
4740
|
body: await parseBody(output.body, context),
|
|
4740
4741
|
};
|
|
4741
4742
|
let response;
|
|
4742
|
-
|
|
4743
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4744
4744
|
switch (errorCode) {
|
|
4745
4745
|
case "BadRequestException":
|
|
4746
4746
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4762,10 +4762,12 @@ const deserializeAws_restJson1CreateAuthorizerCommandError = async (output, cont
|
|
|
4762
4762
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4763
4763
|
default:
|
|
4764
4764
|
const parsedBody = parsedOutput.body;
|
|
4765
|
+
const $metadata = deserializeMetadata(output);
|
|
4766
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4765
4767
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4768
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4767
4769
|
$fault: "client",
|
|
4768
|
-
$metadata
|
|
4770
|
+
$metadata,
|
|
4769
4771
|
});
|
|
4770
4772
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4771
4773
|
}
|
|
@@ -4799,8 +4801,7 @@ const deserializeAws_restJson1CreateBasePathMappingCommandError = async (output,
|
|
|
4799
4801
|
body: await parseBody(output.body, context),
|
|
4800
4802
|
};
|
|
4801
4803
|
let response;
|
|
4802
|
-
|
|
4803
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4804
4805
|
switch (errorCode) {
|
|
4805
4806
|
case "BadRequestException":
|
|
4806
4807
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4822,10 +4823,12 @@ const deserializeAws_restJson1CreateBasePathMappingCommandError = async (output,
|
|
|
4822
4823
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4823
4824
|
default:
|
|
4824
4825
|
const parsedBody = parsedOutput.body;
|
|
4826
|
+
const $metadata = deserializeMetadata(output);
|
|
4827
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4825
4828
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4829
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4827
4830
|
$fault: "client",
|
|
4828
|
-
$metadata
|
|
4831
|
+
$metadata,
|
|
4829
4832
|
});
|
|
4830
4833
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4831
4834
|
}
|
|
@@ -4863,8 +4866,7 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
4863
4866
|
body: await parseBody(output.body, context),
|
|
4864
4867
|
};
|
|
4865
4868
|
let response;
|
|
4866
|
-
|
|
4867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4868
4870
|
switch (errorCode) {
|
|
4869
4871
|
case "BadRequestException":
|
|
4870
4872
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4889,10 +4891,12 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
4889
4891
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4890
4892
|
default:
|
|
4891
4893
|
const parsedBody = parsedOutput.body;
|
|
4894
|
+
const $metadata = deserializeMetadata(output);
|
|
4895
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4892
4896
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4897
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4894
4898
|
$fault: "client",
|
|
4895
|
-
$metadata
|
|
4899
|
+
$metadata,
|
|
4896
4900
|
});
|
|
4897
4901
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4898
4902
|
}
|
|
@@ -4926,8 +4930,7 @@ const deserializeAws_restJson1CreateDocumentationPartCommandError = async (outpu
|
|
|
4926
4930
|
body: await parseBody(output.body, context),
|
|
4927
4931
|
};
|
|
4928
4932
|
let response;
|
|
4929
|
-
|
|
4930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4933
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4931
4934
|
switch (errorCode) {
|
|
4932
4935
|
case "BadRequestException":
|
|
4933
4936
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4949,10 +4952,12 @@ const deserializeAws_restJson1CreateDocumentationPartCommandError = async (outpu
|
|
|
4949
4952
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4950
4953
|
default:
|
|
4951
4954
|
const parsedBody = parsedOutput.body;
|
|
4955
|
+
const $metadata = deserializeMetadata(output);
|
|
4956
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4952
4957
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4958
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4954
4959
|
$fault: "client",
|
|
4955
|
-
$metadata
|
|
4960
|
+
$metadata,
|
|
4956
4961
|
});
|
|
4957
4962
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4958
4963
|
}
|
|
@@ -4986,8 +4991,7 @@ const deserializeAws_restJson1CreateDocumentationVersionCommandError = async (ou
|
|
|
4986
4991
|
body: await parseBody(output.body, context),
|
|
4987
4992
|
};
|
|
4988
4993
|
let response;
|
|
4989
|
-
|
|
4990
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4991
4995
|
switch (errorCode) {
|
|
4992
4996
|
case "BadRequestException":
|
|
4993
4997
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5009,10 +5013,12 @@ const deserializeAws_restJson1CreateDocumentationVersionCommandError = async (ou
|
|
|
5009
5013
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5010
5014
|
default:
|
|
5011
5015
|
const parsedBody = parsedOutput.body;
|
|
5016
|
+
const $metadata = deserializeMetadata(output);
|
|
5017
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5012
5018
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5013
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5019
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5014
5020
|
$fault: "client",
|
|
5015
|
-
$metadata
|
|
5021
|
+
$metadata,
|
|
5016
5022
|
});
|
|
5017
5023
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5018
5024
|
}
|
|
@@ -5102,8 +5108,7 @@ const deserializeAws_restJson1CreateDomainNameCommandError = async (output, cont
|
|
|
5102
5108
|
body: await parseBody(output.body, context),
|
|
5103
5109
|
};
|
|
5104
5110
|
let response;
|
|
5105
|
-
|
|
5106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5111
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5107
5112
|
switch (errorCode) {
|
|
5108
5113
|
case "BadRequestException":
|
|
5109
5114
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5122,10 +5127,12 @@ const deserializeAws_restJson1CreateDomainNameCommandError = async (output, cont
|
|
|
5122
5127
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5123
5128
|
default:
|
|
5124
5129
|
const parsedBody = parsedOutput.body;
|
|
5130
|
+
const $metadata = deserializeMetadata(output);
|
|
5131
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5125
5132
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5127
5134
|
$fault: "client",
|
|
5128
|
-
$metadata
|
|
5135
|
+
$metadata,
|
|
5129
5136
|
});
|
|
5130
5137
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5131
5138
|
}
|
|
@@ -5167,8 +5174,7 @@ const deserializeAws_restJson1CreateModelCommandError = async (output, context)
|
|
|
5167
5174
|
body: await parseBody(output.body, context),
|
|
5168
5175
|
};
|
|
5169
5176
|
let response;
|
|
5170
|
-
|
|
5171
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5172
5178
|
switch (errorCode) {
|
|
5173
5179
|
case "BadRequestException":
|
|
5174
5180
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5190,10 +5196,12 @@ const deserializeAws_restJson1CreateModelCommandError = async (output, context)
|
|
|
5190
5196
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5191
5197
|
default:
|
|
5192
5198
|
const parsedBody = parsedOutput.body;
|
|
5199
|
+
const $metadata = deserializeMetadata(output);
|
|
5200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5193
5201
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5194
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5195
5203
|
$fault: "client",
|
|
5196
|
-
$metadata
|
|
5204
|
+
$metadata,
|
|
5197
5205
|
});
|
|
5198
5206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5199
5207
|
}
|
|
@@ -5231,8 +5239,7 @@ const deserializeAws_restJson1CreateRequestValidatorCommandError = async (output
|
|
|
5231
5239
|
body: await parseBody(output.body, context),
|
|
5232
5240
|
};
|
|
5233
5241
|
let response;
|
|
5234
|
-
|
|
5235
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5236
5243
|
switch (errorCode) {
|
|
5237
5244
|
case "BadRequestException":
|
|
5238
5245
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5254,10 +5261,12 @@ const deserializeAws_restJson1CreateRequestValidatorCommandError = async (output
|
|
|
5254
5261
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5255
5262
|
default:
|
|
5256
5263
|
const parsedBody = parsedOutput.body;
|
|
5264
|
+
const $metadata = deserializeMetadata(output);
|
|
5265
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5257
5266
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5267
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5259
5268
|
$fault: "client",
|
|
5260
|
-
$metadata
|
|
5269
|
+
$metadata,
|
|
5261
5270
|
});
|
|
5262
5271
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5263
5272
|
}
|
|
@@ -5299,8 +5308,7 @@ const deserializeAws_restJson1CreateResourceCommandError = async (output, contex
|
|
|
5299
5308
|
body: await parseBody(output.body, context),
|
|
5300
5309
|
};
|
|
5301
5310
|
let response;
|
|
5302
|
-
|
|
5303
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5304
5312
|
switch (errorCode) {
|
|
5305
5313
|
case "BadRequestException":
|
|
5306
5314
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5322,10 +5330,12 @@ const deserializeAws_restJson1CreateResourceCommandError = async (output, contex
|
|
|
5322
5330
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5323
5331
|
default:
|
|
5324
5332
|
const parsedBody = parsedOutput.body;
|
|
5333
|
+
const $metadata = deserializeMetadata(output);
|
|
5334
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5325
5335
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5336
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5327
5337
|
$fault: "client",
|
|
5328
|
-
$metadata
|
|
5338
|
+
$metadata,
|
|
5329
5339
|
});
|
|
5330
5340
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5331
5341
|
}
|
|
@@ -5399,8 +5409,7 @@ const deserializeAws_restJson1CreateRestApiCommandError = async (output, context
|
|
|
5399
5409
|
body: await parseBody(output.body, context),
|
|
5400
5410
|
};
|
|
5401
5411
|
let response;
|
|
5402
|
-
|
|
5403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5412
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5404
5413
|
switch (errorCode) {
|
|
5405
5414
|
case "BadRequestException":
|
|
5406
5415
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5419,10 +5428,12 @@ const deserializeAws_restJson1CreateRestApiCommandError = async (output, context
|
|
|
5419
5428
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5420
5429
|
default:
|
|
5421
5430
|
const parsedBody = parsedOutput.body;
|
|
5431
|
+
const $metadata = deserializeMetadata(output);
|
|
5432
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5422
5433
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5434
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5424
5435
|
$fault: "client",
|
|
5425
|
-
$metadata
|
|
5436
|
+
$metadata,
|
|
5426
5437
|
});
|
|
5427
5438
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5428
5439
|
}
|
|
@@ -5512,8 +5523,7 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
|
|
|
5512
5523
|
body: await parseBody(output.body, context),
|
|
5513
5524
|
};
|
|
5514
5525
|
let response;
|
|
5515
|
-
|
|
5516
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5517
5527
|
switch (errorCode) {
|
|
5518
5528
|
case "BadRequestException":
|
|
5519
5529
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5535,10 +5545,12 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
|
|
|
5535
5545
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5536
5546
|
default:
|
|
5537
5547
|
const parsedBody = parsedOutput.body;
|
|
5548
|
+
const $metadata = deserializeMetadata(output);
|
|
5549
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5538
5550
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5551
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5540
5552
|
$fault: "client",
|
|
5541
|
-
$metadata
|
|
5553
|
+
$metadata,
|
|
5542
5554
|
});
|
|
5543
5555
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5544
5556
|
}
|
|
@@ -5592,8 +5604,7 @@ const deserializeAws_restJson1CreateUsagePlanCommandError = async (output, conte
|
|
|
5592
5604
|
body: await parseBody(output.body, context),
|
|
5593
5605
|
};
|
|
5594
5606
|
let response;
|
|
5595
|
-
|
|
5596
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5607
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5597
5608
|
switch (errorCode) {
|
|
5598
5609
|
case "BadRequestException":
|
|
5599
5610
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5615,10 +5626,12 @@ const deserializeAws_restJson1CreateUsagePlanCommandError = async (output, conte
|
|
|
5615
5626
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5616
5627
|
default:
|
|
5617
5628
|
const parsedBody = parsedOutput.body;
|
|
5629
|
+
const $metadata = deserializeMetadata(output);
|
|
5630
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5618
5631
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5620
5633
|
$fault: "client",
|
|
5621
|
-
$metadata
|
|
5634
|
+
$metadata,
|
|
5622
5635
|
});
|
|
5623
5636
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5624
5637
|
}
|
|
@@ -5656,8 +5669,7 @@ const deserializeAws_restJson1CreateUsagePlanKeyCommandError = async (output, co
|
|
|
5656
5669
|
body: await parseBody(output.body, context),
|
|
5657
5670
|
};
|
|
5658
5671
|
let response;
|
|
5659
|
-
|
|
5660
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5661
5673
|
switch (errorCode) {
|
|
5662
5674
|
case "BadRequestException":
|
|
5663
5675
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5679,10 +5691,12 @@ const deserializeAws_restJson1CreateUsagePlanKeyCommandError = async (output, co
|
|
|
5679
5691
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5680
5692
|
default:
|
|
5681
5693
|
const parsedBody = parsedOutput.body;
|
|
5694
|
+
const $metadata = deserializeMetadata(output);
|
|
5695
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5682
5696
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5697
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5684
5698
|
$fault: "client",
|
|
5685
|
-
$metadata
|
|
5699
|
+
$metadata,
|
|
5686
5700
|
});
|
|
5687
5701
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5688
5702
|
}
|
|
@@ -5732,8 +5746,7 @@ const deserializeAws_restJson1CreateVpcLinkCommandError = async (output, context
|
|
|
5732
5746
|
body: await parseBody(output.body, context),
|
|
5733
5747
|
};
|
|
5734
5748
|
let response;
|
|
5735
|
-
|
|
5736
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5737
5750
|
switch (errorCode) {
|
|
5738
5751
|
case "BadRequestException":
|
|
5739
5752
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5752,10 +5765,12 @@ const deserializeAws_restJson1CreateVpcLinkCommandError = async (output, context
|
|
|
5752
5765
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5753
5766
|
default:
|
|
5754
5767
|
const parsedBody = parsedOutput.body;
|
|
5768
|
+
const $metadata = deserializeMetadata(output);
|
|
5769
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5755
5770
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5771
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5757
5772
|
$fault: "client",
|
|
5758
|
-
$metadata
|
|
5773
|
+
$metadata,
|
|
5759
5774
|
});
|
|
5760
5775
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5761
5776
|
}
|
|
@@ -5777,8 +5792,7 @@ const deserializeAws_restJson1DeleteApiKeyCommandError = async (output, context)
|
|
|
5777
5792
|
body: await parseBody(output.body, context),
|
|
5778
5793
|
};
|
|
5779
5794
|
let response;
|
|
5780
|
-
|
|
5781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5795
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5782
5796
|
switch (errorCode) {
|
|
5783
5797
|
case "BadRequestException":
|
|
5784
5798
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5797,10 +5811,12 @@ const deserializeAws_restJson1DeleteApiKeyCommandError = async (output, context)
|
|
|
5797
5811
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5798
5812
|
default:
|
|
5799
5813
|
const parsedBody = parsedOutput.body;
|
|
5814
|
+
const $metadata = deserializeMetadata(output);
|
|
5815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5800
5816
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5801
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5802
5818
|
$fault: "client",
|
|
5803
|
-
$metadata
|
|
5819
|
+
$metadata,
|
|
5804
5820
|
});
|
|
5805
5821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5806
5822
|
}
|
|
@@ -5822,8 +5838,7 @@ const deserializeAws_restJson1DeleteAuthorizerCommandError = async (output, cont
|
|
|
5822
5838
|
body: await parseBody(output.body, context),
|
|
5823
5839
|
};
|
|
5824
5840
|
let response;
|
|
5825
|
-
|
|
5826
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5827
5842
|
switch (errorCode) {
|
|
5828
5843
|
case "BadRequestException":
|
|
5829
5844
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5842,10 +5857,12 @@ const deserializeAws_restJson1DeleteAuthorizerCommandError = async (output, cont
|
|
|
5842
5857
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5843
5858
|
default:
|
|
5844
5859
|
const parsedBody = parsedOutput.body;
|
|
5860
|
+
const $metadata = deserializeMetadata(output);
|
|
5861
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5845
5862
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5846
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5863
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5847
5864
|
$fault: "client",
|
|
5848
|
-
$metadata
|
|
5865
|
+
$metadata,
|
|
5849
5866
|
});
|
|
5850
5867
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5851
5868
|
}
|
|
@@ -5867,8 +5884,7 @@ const deserializeAws_restJson1DeleteBasePathMappingCommandError = async (output,
|
|
|
5867
5884
|
body: await parseBody(output.body, context),
|
|
5868
5885
|
};
|
|
5869
5886
|
let response;
|
|
5870
|
-
|
|
5871
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5887
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5872
5888
|
switch (errorCode) {
|
|
5873
5889
|
case "BadRequestException":
|
|
5874
5890
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5887,10 +5903,12 @@ const deserializeAws_restJson1DeleteBasePathMappingCommandError = async (output,
|
|
|
5887
5903
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5888
5904
|
default:
|
|
5889
5905
|
const parsedBody = parsedOutput.body;
|
|
5906
|
+
const $metadata = deserializeMetadata(output);
|
|
5907
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5890
5908
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5909
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5892
5910
|
$fault: "client",
|
|
5893
|
-
$metadata
|
|
5911
|
+
$metadata,
|
|
5894
5912
|
});
|
|
5895
5913
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5896
5914
|
}
|
|
@@ -5912,8 +5930,7 @@ const deserializeAws_restJson1DeleteClientCertificateCommandError = async (outpu
|
|
|
5912
5930
|
body: await parseBody(output.body, context),
|
|
5913
5931
|
};
|
|
5914
5932
|
let response;
|
|
5915
|
-
|
|
5916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5933
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5917
5934
|
switch (errorCode) {
|
|
5918
5935
|
case "BadRequestException":
|
|
5919
5936
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5932,10 +5949,12 @@ const deserializeAws_restJson1DeleteClientCertificateCommandError = async (outpu
|
|
|
5932
5949
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5933
5950
|
default:
|
|
5934
5951
|
const parsedBody = parsedOutput.body;
|
|
5952
|
+
const $metadata = deserializeMetadata(output);
|
|
5953
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5935
5954
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5936
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5955
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5937
5956
|
$fault: "client",
|
|
5938
|
-
$metadata
|
|
5957
|
+
$metadata,
|
|
5939
5958
|
});
|
|
5940
5959
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5941
5960
|
}
|
|
@@ -5957,8 +5976,7 @@ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, cont
|
|
|
5957
5976
|
body: await parseBody(output.body, context),
|
|
5958
5977
|
};
|
|
5959
5978
|
let response;
|
|
5960
|
-
|
|
5961
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5962
5980
|
switch (errorCode) {
|
|
5963
5981
|
case "BadRequestException":
|
|
5964
5982
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5980,10 +5998,12 @@ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, cont
|
|
|
5980
5998
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5981
5999
|
default:
|
|
5982
6000
|
const parsedBody = parsedOutput.body;
|
|
6001
|
+
const $metadata = deserializeMetadata(output);
|
|
6002
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5983
6003
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6004
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5985
6005
|
$fault: "client",
|
|
5986
|
-
$metadata
|
|
6006
|
+
$metadata,
|
|
5987
6007
|
});
|
|
5988
6008
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5989
6009
|
}
|
|
@@ -6005,8 +6025,7 @@ const deserializeAws_restJson1DeleteDocumentationPartCommandError = async (outpu
|
|
|
6005
6025
|
body: await parseBody(output.body, context),
|
|
6006
6026
|
};
|
|
6007
6027
|
let response;
|
|
6008
|
-
|
|
6009
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6010
6029
|
switch (errorCode) {
|
|
6011
6030
|
case "BadRequestException":
|
|
6012
6031
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6025,10 +6044,12 @@ const deserializeAws_restJson1DeleteDocumentationPartCommandError = async (outpu
|
|
|
6025
6044
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6026
6045
|
default:
|
|
6027
6046
|
const parsedBody = parsedOutput.body;
|
|
6047
|
+
const $metadata = deserializeMetadata(output);
|
|
6048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6028
6049
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6030
6051
|
$fault: "client",
|
|
6031
|
-
$metadata
|
|
6052
|
+
$metadata,
|
|
6032
6053
|
});
|
|
6033
6054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6034
6055
|
}
|
|
@@ -6050,8 +6071,7 @@ const deserializeAws_restJson1DeleteDocumentationVersionCommandError = async (ou
|
|
|
6050
6071
|
body: await parseBody(output.body, context),
|
|
6051
6072
|
};
|
|
6052
6073
|
let response;
|
|
6053
|
-
|
|
6054
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6074
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6055
6075
|
switch (errorCode) {
|
|
6056
6076
|
case "BadRequestException":
|
|
6057
6077
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6070,10 +6090,12 @@ const deserializeAws_restJson1DeleteDocumentationVersionCommandError = async (ou
|
|
|
6070
6090
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6071
6091
|
default:
|
|
6072
6092
|
const parsedBody = parsedOutput.body;
|
|
6093
|
+
const $metadata = deserializeMetadata(output);
|
|
6094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6073
6095
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6074
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6075
6097
|
$fault: "client",
|
|
6076
|
-
$metadata
|
|
6098
|
+
$metadata,
|
|
6077
6099
|
});
|
|
6078
6100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6079
6101
|
}
|
|
@@ -6095,8 +6117,7 @@ const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, cont
|
|
|
6095
6117
|
body: await parseBody(output.body, context),
|
|
6096
6118
|
};
|
|
6097
6119
|
let response;
|
|
6098
|
-
|
|
6099
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6100
6121
|
switch (errorCode) {
|
|
6101
6122
|
case "BadRequestException":
|
|
6102
6123
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6115,10 +6136,12 @@ const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, cont
|
|
|
6115
6136
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6116
6137
|
default:
|
|
6117
6138
|
const parsedBody = parsedOutput.body;
|
|
6139
|
+
const $metadata = deserializeMetadata(output);
|
|
6140
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6118
6141
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6120
6143
|
$fault: "client",
|
|
6121
|
-
$metadata
|
|
6144
|
+
$metadata,
|
|
6122
6145
|
});
|
|
6123
6146
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6124
6147
|
}
|
|
@@ -6140,8 +6163,7 @@ const deserializeAws_restJson1DeleteGatewayResponseCommandError = async (output,
|
|
|
6140
6163
|
body: await parseBody(output.body, context),
|
|
6141
6164
|
};
|
|
6142
6165
|
let response;
|
|
6143
|
-
|
|
6144
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6166
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6145
6167
|
switch (errorCode) {
|
|
6146
6168
|
case "BadRequestException":
|
|
6147
6169
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6160,10 +6182,12 @@ const deserializeAws_restJson1DeleteGatewayResponseCommandError = async (output,
|
|
|
6160
6182
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6161
6183
|
default:
|
|
6162
6184
|
const parsedBody = parsedOutput.body;
|
|
6185
|
+
const $metadata = deserializeMetadata(output);
|
|
6186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6163
6187
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6164
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6165
6189
|
$fault: "client",
|
|
6166
|
-
$metadata
|
|
6190
|
+
$metadata,
|
|
6167
6191
|
});
|
|
6168
6192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6169
6193
|
}
|
|
@@ -6185,8 +6209,7 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
6185
6209
|
body: await parseBody(output.body, context),
|
|
6186
6210
|
};
|
|
6187
6211
|
let response;
|
|
6188
|
-
|
|
6189
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6212
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6190
6213
|
switch (errorCode) {
|
|
6191
6214
|
case "BadRequestException":
|
|
6192
6215
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6205,10 +6228,12 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
6205
6228
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6206
6229
|
default:
|
|
6207
6230
|
const parsedBody = parsedOutput.body;
|
|
6231
|
+
const $metadata = deserializeMetadata(output);
|
|
6232
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6208
6233
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6234
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6210
6235
|
$fault: "client",
|
|
6211
|
-
$metadata
|
|
6236
|
+
$metadata,
|
|
6212
6237
|
});
|
|
6213
6238
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6214
6239
|
}
|
|
@@ -6230,8 +6255,7 @@ const deserializeAws_restJson1DeleteIntegrationResponseCommandError = async (out
|
|
|
6230
6255
|
body: await parseBody(output.body, context),
|
|
6231
6256
|
};
|
|
6232
6257
|
let response;
|
|
6233
|
-
|
|
6234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6235
6259
|
switch (errorCode) {
|
|
6236
6260
|
case "BadRequestException":
|
|
6237
6261
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6250,10 +6274,12 @@ const deserializeAws_restJson1DeleteIntegrationResponseCommandError = async (out
|
|
|
6250
6274
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6251
6275
|
default:
|
|
6252
6276
|
const parsedBody = parsedOutput.body;
|
|
6277
|
+
const $metadata = deserializeMetadata(output);
|
|
6278
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6253
6279
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6280
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6255
6281
|
$fault: "client",
|
|
6256
|
-
$metadata
|
|
6282
|
+
$metadata,
|
|
6257
6283
|
});
|
|
6258
6284
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6259
6285
|
}
|
|
@@ -6275,8 +6301,7 @@ const deserializeAws_restJson1DeleteMethodCommandError = async (output, context)
|
|
|
6275
6301
|
body: await parseBody(output.body, context),
|
|
6276
6302
|
};
|
|
6277
6303
|
let response;
|
|
6278
|
-
|
|
6279
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6280
6305
|
switch (errorCode) {
|
|
6281
6306
|
case "ConflictException":
|
|
6282
6307
|
case "com.amazonaws.apigateway#ConflictException":
|
|
@@ -6292,10 +6317,12 @@ const deserializeAws_restJson1DeleteMethodCommandError = async (output, context)
|
|
|
6292
6317
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6293
6318
|
default:
|
|
6294
6319
|
const parsedBody = parsedOutput.body;
|
|
6320
|
+
const $metadata = deserializeMetadata(output);
|
|
6321
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6295
6322
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6296
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6323
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6297
6324
|
$fault: "client",
|
|
6298
|
-
$metadata
|
|
6325
|
+
$metadata,
|
|
6299
6326
|
});
|
|
6300
6327
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6301
6328
|
}
|
|
@@ -6317,8 +6344,7 @@ const deserializeAws_restJson1DeleteMethodResponseCommandError = async (output,
|
|
|
6317
6344
|
body: await parseBody(output.body, context),
|
|
6318
6345
|
};
|
|
6319
6346
|
let response;
|
|
6320
|
-
|
|
6321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6347
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6322
6348
|
switch (errorCode) {
|
|
6323
6349
|
case "BadRequestException":
|
|
6324
6350
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6337,10 +6363,12 @@ const deserializeAws_restJson1DeleteMethodResponseCommandError = async (output,
|
|
|
6337
6363
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6338
6364
|
default:
|
|
6339
6365
|
const parsedBody = parsedOutput.body;
|
|
6366
|
+
const $metadata = deserializeMetadata(output);
|
|
6367
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6340
6368
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6341
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6369
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6342
6370
|
$fault: "client",
|
|
6343
|
-
$metadata
|
|
6371
|
+
$metadata,
|
|
6344
6372
|
});
|
|
6345
6373
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6346
6374
|
}
|
|
@@ -6362,8 +6390,7 @@ const deserializeAws_restJson1DeleteModelCommandError = async (output, context)
|
|
|
6362
6390
|
body: await parseBody(output.body, context),
|
|
6363
6391
|
};
|
|
6364
6392
|
let response;
|
|
6365
|
-
|
|
6366
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6393
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6367
6394
|
switch (errorCode) {
|
|
6368
6395
|
case "BadRequestException":
|
|
6369
6396
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6382,10 +6409,12 @@ const deserializeAws_restJson1DeleteModelCommandError = async (output, context)
|
|
|
6382
6409
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6383
6410
|
default:
|
|
6384
6411
|
const parsedBody = parsedOutput.body;
|
|
6412
|
+
const $metadata = deserializeMetadata(output);
|
|
6413
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6385
6414
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6415
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6387
6416
|
$fault: "client",
|
|
6388
|
-
$metadata
|
|
6417
|
+
$metadata,
|
|
6389
6418
|
});
|
|
6390
6419
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6391
6420
|
}
|
|
@@ -6407,8 +6436,7 @@ const deserializeAws_restJson1DeleteRequestValidatorCommandError = async (output
|
|
|
6407
6436
|
body: await parseBody(output.body, context),
|
|
6408
6437
|
};
|
|
6409
6438
|
let response;
|
|
6410
|
-
|
|
6411
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6439
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6412
6440
|
switch (errorCode) {
|
|
6413
6441
|
case "BadRequestException":
|
|
6414
6442
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6427,10 +6455,12 @@ const deserializeAws_restJson1DeleteRequestValidatorCommandError = async (output
|
|
|
6427
6455
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6428
6456
|
default:
|
|
6429
6457
|
const parsedBody = parsedOutput.body;
|
|
6458
|
+
const $metadata = deserializeMetadata(output);
|
|
6459
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6430
6460
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6461
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6432
6462
|
$fault: "client",
|
|
6433
|
-
$metadata
|
|
6463
|
+
$metadata,
|
|
6434
6464
|
});
|
|
6435
6465
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6436
6466
|
}
|
|
@@ -6452,8 +6482,7 @@ const deserializeAws_restJson1DeleteResourceCommandError = async (output, contex
|
|
|
6452
6482
|
body: await parseBody(output.body, context),
|
|
6453
6483
|
};
|
|
6454
6484
|
let response;
|
|
6455
|
-
|
|
6456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6457
6486
|
switch (errorCode) {
|
|
6458
6487
|
case "BadRequestException":
|
|
6459
6488
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6472,10 +6501,12 @@ const deserializeAws_restJson1DeleteResourceCommandError = async (output, contex
|
|
|
6472
6501
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6473
6502
|
default:
|
|
6474
6503
|
const parsedBody = parsedOutput.body;
|
|
6504
|
+
const $metadata = deserializeMetadata(output);
|
|
6505
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6475
6506
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6507
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6477
6508
|
$fault: "client",
|
|
6478
|
-
$metadata
|
|
6509
|
+
$metadata,
|
|
6479
6510
|
});
|
|
6480
6511
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6481
6512
|
}
|
|
@@ -6497,8 +6528,7 @@ const deserializeAws_restJson1DeleteRestApiCommandError = async (output, context
|
|
|
6497
6528
|
body: await parseBody(output.body, context),
|
|
6498
6529
|
};
|
|
6499
6530
|
let response;
|
|
6500
|
-
|
|
6501
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6502
6532
|
switch (errorCode) {
|
|
6503
6533
|
case "BadRequestException":
|
|
6504
6534
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6517,10 +6547,12 @@ const deserializeAws_restJson1DeleteRestApiCommandError = async (output, context
|
|
|
6517
6547
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6518
6548
|
default:
|
|
6519
6549
|
const parsedBody = parsedOutput.body;
|
|
6550
|
+
const $metadata = deserializeMetadata(output);
|
|
6551
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6520
6552
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6521
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6522
6554
|
$fault: "client",
|
|
6523
|
-
$metadata
|
|
6555
|
+
$metadata,
|
|
6524
6556
|
});
|
|
6525
6557
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6526
6558
|
}
|
|
@@ -6542,8 +6574,7 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
|
|
|
6542
6574
|
body: await parseBody(output.body, context),
|
|
6543
6575
|
};
|
|
6544
6576
|
let response;
|
|
6545
|
-
|
|
6546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6577
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6547
6578
|
switch (errorCode) {
|
|
6548
6579
|
case "BadRequestException":
|
|
6549
6580
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6565,10 +6596,12 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
|
|
|
6565
6596
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6566
6597
|
default:
|
|
6567
6598
|
const parsedBody = parsedOutput.body;
|
|
6599
|
+
const $metadata = deserializeMetadata(output);
|
|
6600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6568
6601
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6569
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6570
6603
|
$fault: "client",
|
|
6571
|
-
$metadata
|
|
6604
|
+
$metadata,
|
|
6572
6605
|
});
|
|
6573
6606
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6574
6607
|
}
|
|
@@ -6590,8 +6623,7 @@ const deserializeAws_restJson1DeleteUsagePlanCommandError = async (output, conte
|
|
|
6590
6623
|
body: await parseBody(output.body, context),
|
|
6591
6624
|
};
|
|
6592
6625
|
let response;
|
|
6593
|
-
|
|
6594
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6595
6627
|
switch (errorCode) {
|
|
6596
6628
|
case "BadRequestException":
|
|
6597
6629
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6610,10 +6642,12 @@ const deserializeAws_restJson1DeleteUsagePlanCommandError = async (output, conte
|
|
|
6610
6642
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6611
6643
|
default:
|
|
6612
6644
|
const parsedBody = parsedOutput.body;
|
|
6645
|
+
const $metadata = deserializeMetadata(output);
|
|
6646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6613
6647
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6615
6649
|
$fault: "client",
|
|
6616
|
-
$metadata
|
|
6650
|
+
$metadata,
|
|
6617
6651
|
});
|
|
6618
6652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6619
6653
|
}
|
|
@@ -6635,8 +6669,7 @@ const deserializeAws_restJson1DeleteUsagePlanKeyCommandError = async (output, co
|
|
|
6635
6669
|
body: await parseBody(output.body, context),
|
|
6636
6670
|
};
|
|
6637
6671
|
let response;
|
|
6638
|
-
|
|
6639
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6640
6673
|
switch (errorCode) {
|
|
6641
6674
|
case "BadRequestException":
|
|
6642
6675
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6655,10 +6688,12 @@ const deserializeAws_restJson1DeleteUsagePlanKeyCommandError = async (output, co
|
|
|
6655
6688
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6656
6689
|
default:
|
|
6657
6690
|
const parsedBody = parsedOutput.body;
|
|
6691
|
+
const $metadata = deserializeMetadata(output);
|
|
6692
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6658
6693
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6659
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6694
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6660
6695
|
$fault: "client",
|
|
6661
|
-
$metadata
|
|
6696
|
+
$metadata,
|
|
6662
6697
|
});
|
|
6663
6698
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6664
6699
|
}
|
|
@@ -6680,8 +6715,7 @@ const deserializeAws_restJson1DeleteVpcLinkCommandError = async (output, context
|
|
|
6680
6715
|
body: await parseBody(output.body, context),
|
|
6681
6716
|
};
|
|
6682
6717
|
let response;
|
|
6683
|
-
|
|
6684
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6718
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6685
6719
|
switch (errorCode) {
|
|
6686
6720
|
case "BadRequestException":
|
|
6687
6721
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6700,10 +6734,12 @@ const deserializeAws_restJson1DeleteVpcLinkCommandError = async (output, context
|
|
|
6700
6734
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6701
6735
|
default:
|
|
6702
6736
|
const parsedBody = parsedOutput.body;
|
|
6737
|
+
const $metadata = deserializeMetadata(output);
|
|
6738
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6703
6739
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6705
6741
|
$fault: "client",
|
|
6706
|
-
$metadata
|
|
6742
|
+
$metadata,
|
|
6707
6743
|
});
|
|
6708
6744
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6709
6745
|
}
|
|
@@ -6725,8 +6761,7 @@ const deserializeAws_restJson1FlushStageAuthorizersCacheCommandError = async (ou
|
|
|
6725
6761
|
body: await parseBody(output.body, context),
|
|
6726
6762
|
};
|
|
6727
6763
|
let response;
|
|
6728
|
-
|
|
6729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6730
6765
|
switch (errorCode) {
|
|
6731
6766
|
case "BadRequestException":
|
|
6732
6767
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6748,10 +6783,12 @@ const deserializeAws_restJson1FlushStageAuthorizersCacheCommandError = async (ou
|
|
|
6748
6783
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6749
6784
|
default:
|
|
6750
6785
|
const parsedBody = parsedOutput.body;
|
|
6786
|
+
const $metadata = deserializeMetadata(output);
|
|
6787
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6751
6788
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6752
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6789
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6753
6790
|
$fault: "client",
|
|
6754
|
-
$metadata
|
|
6791
|
+
$metadata,
|
|
6755
6792
|
});
|
|
6756
6793
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6757
6794
|
}
|
|
@@ -6773,8 +6810,7 @@ const deserializeAws_restJson1FlushStageCacheCommandError = async (output, conte
|
|
|
6773
6810
|
body: await parseBody(output.body, context),
|
|
6774
6811
|
};
|
|
6775
6812
|
let response;
|
|
6776
|
-
|
|
6777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6778
6814
|
switch (errorCode) {
|
|
6779
6815
|
case "BadRequestException":
|
|
6780
6816
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6796,10 +6832,12 @@ const deserializeAws_restJson1FlushStageCacheCommandError = async (output, conte
|
|
|
6796
6832
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6797
6833
|
default:
|
|
6798
6834
|
const parsedBody = parsedOutput.body;
|
|
6835
|
+
const $metadata = deserializeMetadata(output);
|
|
6836
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6799
6837
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6838
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6801
6839
|
$fault: "client",
|
|
6802
|
-
$metadata
|
|
6840
|
+
$metadata,
|
|
6803
6841
|
});
|
|
6804
6842
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6805
6843
|
}
|
|
@@ -6845,8 +6883,7 @@ const deserializeAws_restJson1GenerateClientCertificateCommandError = async (out
|
|
|
6845
6883
|
body: await parseBody(output.body, context),
|
|
6846
6884
|
};
|
|
6847
6885
|
let response;
|
|
6848
|
-
|
|
6849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6886
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6850
6887
|
switch (errorCode) {
|
|
6851
6888
|
case "BadRequestException":
|
|
6852
6889
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6865,10 +6902,12 @@ const deserializeAws_restJson1GenerateClientCertificateCommandError = async (out
|
|
|
6865
6902
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6866
6903
|
default:
|
|
6867
6904
|
const parsedBody = parsedOutput.body;
|
|
6905
|
+
const $metadata = deserializeMetadata(output);
|
|
6906
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6868
6907
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6908
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6870
6909
|
$fault: "client",
|
|
6871
|
-
$metadata
|
|
6910
|
+
$metadata,
|
|
6872
6911
|
});
|
|
6873
6912
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6874
6913
|
}
|
|
@@ -6906,8 +6945,7 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
6906
6945
|
body: await parseBody(output.body, context),
|
|
6907
6946
|
};
|
|
6908
6947
|
let response;
|
|
6909
|
-
|
|
6910
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6948
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6911
6949
|
switch (errorCode) {
|
|
6912
6950
|
case "BadRequestException":
|
|
6913
6951
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6923,10 +6961,12 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
6923
6961
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6924
6962
|
default:
|
|
6925
6963
|
const parsedBody = parsedOutput.body;
|
|
6964
|
+
const $metadata = deserializeMetadata(output);
|
|
6965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6926
6966
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6928
6968
|
$fault: "client",
|
|
6929
|
-
$metadata
|
|
6969
|
+
$metadata,
|
|
6930
6970
|
});
|
|
6931
6971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6932
6972
|
}
|
|
@@ -6988,8 +7028,7 @@ const deserializeAws_restJson1GetApiKeyCommandError = async (output, context) =>
|
|
|
6988
7028
|
body: await parseBody(output.body, context),
|
|
6989
7029
|
};
|
|
6990
7030
|
let response;
|
|
6991
|
-
|
|
6992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6993
7032
|
switch (errorCode) {
|
|
6994
7033
|
case "BadRequestException":
|
|
6995
7034
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7005,10 +7044,12 @@ const deserializeAws_restJson1GetApiKeyCommandError = async (output, context) =>
|
|
|
7005
7044
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7006
7045
|
default:
|
|
7007
7046
|
const parsedBody = parsedOutput.body;
|
|
7047
|
+
const $metadata = deserializeMetadata(output);
|
|
7048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7008
7049
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7010
7051
|
$fault: "client",
|
|
7011
|
-
$metadata
|
|
7052
|
+
$metadata,
|
|
7012
7053
|
});
|
|
7013
7054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7014
7055
|
}
|
|
@@ -7042,8 +7083,7 @@ const deserializeAws_restJson1GetApiKeysCommandError = async (output, context) =
|
|
|
7042
7083
|
body: await parseBody(output.body, context),
|
|
7043
7084
|
};
|
|
7044
7085
|
let response;
|
|
7045
|
-
|
|
7046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7086
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7047
7087
|
switch (errorCode) {
|
|
7048
7088
|
case "BadRequestException":
|
|
7049
7089
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7059,10 +7099,12 @@ const deserializeAws_restJson1GetApiKeysCommandError = async (output, context) =
|
|
|
7059
7099
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7060
7100
|
default:
|
|
7061
7101
|
const parsedBody = parsedOutput.body;
|
|
7102
|
+
const $metadata = deserializeMetadata(output);
|
|
7103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7062
7104
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7064
7106
|
$fault: "client",
|
|
7065
|
-
$metadata
|
|
7107
|
+
$metadata,
|
|
7066
7108
|
});
|
|
7067
7109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7068
7110
|
}
|
|
@@ -7124,8 +7166,7 @@ const deserializeAws_restJson1GetAuthorizerCommandError = async (output, context
|
|
|
7124
7166
|
body: await parseBody(output.body, context),
|
|
7125
7167
|
};
|
|
7126
7168
|
let response;
|
|
7127
|
-
|
|
7128
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7129
7170
|
switch (errorCode) {
|
|
7130
7171
|
case "BadRequestException":
|
|
7131
7172
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7141,10 +7182,12 @@ const deserializeAws_restJson1GetAuthorizerCommandError = async (output, context
|
|
|
7141
7182
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7142
7183
|
default:
|
|
7143
7184
|
const parsedBody = parsedOutput.body;
|
|
7185
|
+
const $metadata = deserializeMetadata(output);
|
|
7186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7144
7187
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7145
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7146
7189
|
$fault: "client",
|
|
7147
|
-
$metadata
|
|
7190
|
+
$metadata,
|
|
7148
7191
|
});
|
|
7149
7192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7150
7193
|
}
|
|
@@ -7174,8 +7217,7 @@ const deserializeAws_restJson1GetAuthorizersCommandError = async (output, contex
|
|
|
7174
7217
|
body: await parseBody(output.body, context),
|
|
7175
7218
|
};
|
|
7176
7219
|
let response;
|
|
7177
|
-
|
|
7178
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7179
7221
|
switch (errorCode) {
|
|
7180
7222
|
case "BadRequestException":
|
|
7181
7223
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7191,10 +7233,12 @@ const deserializeAws_restJson1GetAuthorizersCommandError = async (output, contex
|
|
|
7191
7233
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7192
7234
|
default:
|
|
7193
7235
|
const parsedBody = parsedOutput.body;
|
|
7236
|
+
const $metadata = deserializeMetadata(output);
|
|
7237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7194
7238
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7195
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7196
7240
|
$fault: "client",
|
|
7197
|
-
$metadata
|
|
7241
|
+
$metadata,
|
|
7198
7242
|
});
|
|
7199
7243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7200
7244
|
}
|
|
@@ -7228,8 +7272,7 @@ const deserializeAws_restJson1GetBasePathMappingCommandError = async (output, co
|
|
|
7228
7272
|
body: await parseBody(output.body, context),
|
|
7229
7273
|
};
|
|
7230
7274
|
let response;
|
|
7231
|
-
|
|
7232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7275
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7233
7276
|
switch (errorCode) {
|
|
7234
7277
|
case "BadRequestException":
|
|
7235
7278
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7245,10 +7288,12 @@ const deserializeAws_restJson1GetBasePathMappingCommandError = async (output, co
|
|
|
7245
7288
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7246
7289
|
default:
|
|
7247
7290
|
const parsedBody = parsedOutput.body;
|
|
7291
|
+
const $metadata = deserializeMetadata(output);
|
|
7292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7248
7293
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7249
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7250
7295
|
$fault: "client",
|
|
7251
|
-
$metadata
|
|
7296
|
+
$metadata,
|
|
7252
7297
|
});
|
|
7253
7298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7254
7299
|
}
|
|
@@ -7278,8 +7323,7 @@ const deserializeAws_restJson1GetBasePathMappingsCommandError = async (output, c
|
|
|
7278
7323
|
body: await parseBody(output.body, context),
|
|
7279
7324
|
};
|
|
7280
7325
|
let response;
|
|
7281
|
-
|
|
7282
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7326
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7283
7327
|
switch (errorCode) {
|
|
7284
7328
|
case "BadRequestException":
|
|
7285
7329
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7295,10 +7339,12 @@ const deserializeAws_restJson1GetBasePathMappingsCommandError = async (output, c
|
|
|
7295
7339
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7296
7340
|
default:
|
|
7297
7341
|
const parsedBody = parsedOutput.body;
|
|
7342
|
+
const $metadata = deserializeMetadata(output);
|
|
7343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7298
7344
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7300
7346
|
$fault: "client",
|
|
7301
|
-
$metadata
|
|
7347
|
+
$metadata,
|
|
7302
7348
|
});
|
|
7303
7349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7304
7350
|
}
|
|
@@ -7344,8 +7390,7 @@ const deserializeAws_restJson1GetClientCertificateCommandError = async (output,
|
|
|
7344
7390
|
body: await parseBody(output.body, context),
|
|
7345
7391
|
};
|
|
7346
7392
|
let response;
|
|
7347
|
-
|
|
7348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7393
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7349
7394
|
switch (errorCode) {
|
|
7350
7395
|
case "BadRequestException":
|
|
7351
7396
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7361,10 +7406,12 @@ const deserializeAws_restJson1GetClientCertificateCommandError = async (output,
|
|
|
7361
7406
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7362
7407
|
default:
|
|
7363
7408
|
const parsedBody = parsedOutput.body;
|
|
7409
|
+
const $metadata = deserializeMetadata(output);
|
|
7410
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7364
7411
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7412
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7366
7413
|
$fault: "client",
|
|
7367
|
-
$metadata
|
|
7414
|
+
$metadata,
|
|
7368
7415
|
});
|
|
7369
7416
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7370
7417
|
}
|
|
@@ -7394,8 +7441,7 @@ const deserializeAws_restJson1GetClientCertificatesCommandError = async (output,
|
|
|
7394
7441
|
body: await parseBody(output.body, context),
|
|
7395
7442
|
};
|
|
7396
7443
|
let response;
|
|
7397
|
-
|
|
7398
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7444
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7399
7445
|
switch (errorCode) {
|
|
7400
7446
|
case "BadRequestException":
|
|
7401
7447
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7411,10 +7457,12 @@ const deserializeAws_restJson1GetClientCertificatesCommandError = async (output,
|
|
|
7411
7457
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7412
7458
|
default:
|
|
7413
7459
|
const parsedBody = parsedOutput.body;
|
|
7460
|
+
const $metadata = deserializeMetadata(output);
|
|
7461
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7414
7462
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7415
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7463
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7416
7464
|
$fault: "client",
|
|
7417
|
-
$metadata
|
|
7465
|
+
$metadata,
|
|
7418
7466
|
});
|
|
7419
7467
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7420
7468
|
}
|
|
@@ -7452,8 +7500,7 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
7452
7500
|
body: await parseBody(output.body, context),
|
|
7453
7501
|
};
|
|
7454
7502
|
let response;
|
|
7455
|
-
|
|
7456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7503
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7457
7504
|
switch (errorCode) {
|
|
7458
7505
|
case "BadRequestException":
|
|
7459
7506
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7472,10 +7519,12 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
7472
7519
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7473
7520
|
default:
|
|
7474
7521
|
const parsedBody = parsedOutput.body;
|
|
7522
|
+
const $metadata = deserializeMetadata(output);
|
|
7523
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7475
7524
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7525
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7477
7526
|
$fault: "client",
|
|
7478
|
-
$metadata
|
|
7527
|
+
$metadata,
|
|
7479
7528
|
});
|
|
7480
7529
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7481
7530
|
}
|
|
@@ -7505,8 +7554,7 @@ const deserializeAws_restJson1GetDeploymentsCommandError = async (output, contex
|
|
|
7505
7554
|
body: await parseBody(output.body, context),
|
|
7506
7555
|
};
|
|
7507
7556
|
let response;
|
|
7508
|
-
|
|
7509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7510
7558
|
switch (errorCode) {
|
|
7511
7559
|
case "BadRequestException":
|
|
7512
7560
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7525,10 +7573,12 @@ const deserializeAws_restJson1GetDeploymentsCommandError = async (output, contex
|
|
|
7525
7573
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7526
7574
|
default:
|
|
7527
7575
|
const parsedBody = parsedOutput.body;
|
|
7576
|
+
const $metadata = deserializeMetadata(output);
|
|
7577
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7528
7578
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7530
7580
|
$fault: "client",
|
|
7531
|
-
$metadata
|
|
7581
|
+
$metadata,
|
|
7532
7582
|
});
|
|
7533
7583
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7534
7584
|
}
|
|
@@ -7562,8 +7612,7 @@ const deserializeAws_restJson1GetDocumentationPartCommandError = async (output,
|
|
|
7562
7612
|
body: await parseBody(output.body, context),
|
|
7563
7613
|
};
|
|
7564
7614
|
let response;
|
|
7565
|
-
|
|
7566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7567
7616
|
switch (errorCode) {
|
|
7568
7617
|
case "BadRequestException":
|
|
7569
7618
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7579,10 +7628,12 @@ const deserializeAws_restJson1GetDocumentationPartCommandError = async (output,
|
|
|
7579
7628
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7580
7629
|
default:
|
|
7581
7630
|
const parsedBody = parsedOutput.body;
|
|
7631
|
+
const $metadata = deserializeMetadata(output);
|
|
7632
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7582
7633
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7634
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7584
7635
|
$fault: "client",
|
|
7585
|
-
$metadata
|
|
7636
|
+
$metadata,
|
|
7586
7637
|
});
|
|
7587
7638
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7588
7639
|
}
|
|
@@ -7612,8 +7663,7 @@ const deserializeAws_restJson1GetDocumentationPartsCommandError = async (output,
|
|
|
7612
7663
|
body: await parseBody(output.body, context),
|
|
7613
7664
|
};
|
|
7614
7665
|
let response;
|
|
7615
|
-
|
|
7616
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7666
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7617
7667
|
switch (errorCode) {
|
|
7618
7668
|
case "BadRequestException":
|
|
7619
7669
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7629,10 +7679,12 @@ const deserializeAws_restJson1GetDocumentationPartsCommandError = async (output,
|
|
|
7629
7679
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7630
7680
|
default:
|
|
7631
7681
|
const parsedBody = parsedOutput.body;
|
|
7682
|
+
const $metadata = deserializeMetadata(output);
|
|
7683
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7632
7684
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7685
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7634
7686
|
$fault: "client",
|
|
7635
|
-
$metadata
|
|
7687
|
+
$metadata,
|
|
7636
7688
|
});
|
|
7637
7689
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7638
7690
|
}
|
|
@@ -7666,8 +7718,7 @@ const deserializeAws_restJson1GetDocumentationVersionCommandError = async (outpu
|
|
|
7666
7718
|
body: await parseBody(output.body, context),
|
|
7667
7719
|
};
|
|
7668
7720
|
let response;
|
|
7669
|
-
|
|
7670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7671
7722
|
switch (errorCode) {
|
|
7672
7723
|
case "NotFoundException":
|
|
7673
7724
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -7680,10 +7731,12 @@ const deserializeAws_restJson1GetDocumentationVersionCommandError = async (outpu
|
|
|
7680
7731
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7681
7732
|
default:
|
|
7682
7733
|
const parsedBody = parsedOutput.body;
|
|
7734
|
+
const $metadata = deserializeMetadata(output);
|
|
7735
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7683
7736
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7685
7738
|
$fault: "client",
|
|
7686
|
-
$metadata
|
|
7739
|
+
$metadata,
|
|
7687
7740
|
});
|
|
7688
7741
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7689
7742
|
}
|
|
@@ -7713,8 +7766,7 @@ const deserializeAws_restJson1GetDocumentationVersionsCommandError = async (outp
|
|
|
7713
7766
|
body: await parseBody(output.body, context),
|
|
7714
7767
|
};
|
|
7715
7768
|
let response;
|
|
7716
|
-
|
|
7717
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7718
7770
|
switch (errorCode) {
|
|
7719
7771
|
case "BadRequestException":
|
|
7720
7772
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7730,10 +7782,12 @@ const deserializeAws_restJson1GetDocumentationVersionsCommandError = async (outp
|
|
|
7730
7782
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7731
7783
|
default:
|
|
7732
7784
|
const parsedBody = parsedOutput.body;
|
|
7785
|
+
const $metadata = deserializeMetadata(output);
|
|
7786
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7733
7787
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7735
7789
|
$fault: "client",
|
|
7736
|
-
$metadata
|
|
7790
|
+
$metadata,
|
|
7737
7791
|
});
|
|
7738
7792
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7739
7793
|
}
|
|
@@ -7823,8 +7877,7 @@ const deserializeAws_restJson1GetDomainNameCommandError = async (output, context
|
|
|
7823
7877
|
body: await parseBody(output.body, context),
|
|
7824
7878
|
};
|
|
7825
7879
|
let response;
|
|
7826
|
-
|
|
7827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7880
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7828
7881
|
switch (errorCode) {
|
|
7829
7882
|
case "BadRequestException":
|
|
7830
7883
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7840,10 +7893,12 @@ const deserializeAws_restJson1GetDomainNameCommandError = async (output, context
|
|
|
7840
7893
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7841
7894
|
default:
|
|
7842
7895
|
const parsedBody = parsedOutput.body;
|
|
7896
|
+
const $metadata = deserializeMetadata(output);
|
|
7897
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7843
7898
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7899
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7845
7900
|
$fault: "client",
|
|
7846
|
-
$metadata
|
|
7901
|
+
$metadata,
|
|
7847
7902
|
});
|
|
7848
7903
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7849
7904
|
}
|
|
@@ -7873,8 +7928,7 @@ const deserializeAws_restJson1GetDomainNamesCommandError = async (output, contex
|
|
|
7873
7928
|
body: await parseBody(output.body, context),
|
|
7874
7929
|
};
|
|
7875
7930
|
let response;
|
|
7876
|
-
|
|
7877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7931
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7878
7932
|
switch (errorCode) {
|
|
7879
7933
|
case "BadRequestException":
|
|
7880
7934
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7890,10 +7944,12 @@ const deserializeAws_restJson1GetDomainNamesCommandError = async (output, contex
|
|
|
7890
7944
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7891
7945
|
default:
|
|
7892
7946
|
const parsedBody = parsedOutput.body;
|
|
7947
|
+
const $metadata = deserializeMetadata(output);
|
|
7948
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7893
7949
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7895
7951
|
$fault: "client",
|
|
7896
|
-
$metadata
|
|
7952
|
+
$metadata,
|
|
7897
7953
|
});
|
|
7898
7954
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7899
7955
|
}
|
|
@@ -7925,8 +7981,7 @@ const deserializeAws_restJson1GetExportCommandError = async (output, context) =>
|
|
|
7925
7981
|
body: await parseBody(output.body, context),
|
|
7926
7982
|
};
|
|
7927
7983
|
let response;
|
|
7928
|
-
|
|
7929
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7984
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7930
7985
|
switch (errorCode) {
|
|
7931
7986
|
case "BadRequestException":
|
|
7932
7987
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7948,10 +8003,12 @@ const deserializeAws_restJson1GetExportCommandError = async (output, context) =>
|
|
|
7948
8003
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7949
8004
|
default:
|
|
7950
8005
|
const parsedBody = parsedOutput.body;
|
|
8006
|
+
const $metadata = deserializeMetadata(output);
|
|
8007
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7951
8008
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7953
8010
|
$fault: "client",
|
|
7954
|
-
$metadata
|
|
8011
|
+
$metadata,
|
|
7955
8012
|
});
|
|
7956
8013
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7957
8014
|
}
|
|
@@ -7993,8 +8050,7 @@ const deserializeAws_restJson1GetGatewayResponseCommandError = async (output, co
|
|
|
7993
8050
|
body: await parseBody(output.body, context),
|
|
7994
8051
|
};
|
|
7995
8052
|
let response;
|
|
7996
|
-
|
|
7997
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8053
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7998
8054
|
switch (errorCode) {
|
|
7999
8055
|
case "BadRequestException":
|
|
8000
8056
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8010,10 +8066,12 @@ const deserializeAws_restJson1GetGatewayResponseCommandError = async (output, co
|
|
|
8010
8066
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8011
8067
|
default:
|
|
8012
8068
|
const parsedBody = parsedOutput.body;
|
|
8069
|
+
const $metadata = deserializeMetadata(output);
|
|
8070
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8013
8071
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8014
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8015
8073
|
$fault: "client",
|
|
8016
|
-
$metadata
|
|
8074
|
+
$metadata,
|
|
8017
8075
|
});
|
|
8018
8076
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8019
8077
|
}
|
|
@@ -8043,8 +8101,7 @@ const deserializeAws_restJson1GetGatewayResponsesCommandError = async (output, c
|
|
|
8043
8101
|
body: await parseBody(output.body, context),
|
|
8044
8102
|
};
|
|
8045
8103
|
let response;
|
|
8046
|
-
|
|
8047
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8048
8105
|
switch (errorCode) {
|
|
8049
8106
|
case "BadRequestException":
|
|
8050
8107
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8060,10 +8117,12 @@ const deserializeAws_restJson1GetGatewayResponsesCommandError = async (output, c
|
|
|
8060
8117
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8061
8118
|
default:
|
|
8062
8119
|
const parsedBody = parsedOutput.body;
|
|
8120
|
+
const $metadata = deserializeMetadata(output);
|
|
8121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8063
8122
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8064
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8065
8124
|
$fault: "client",
|
|
8066
|
-
$metadata
|
|
8125
|
+
$metadata,
|
|
8067
8126
|
});
|
|
8068
8127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8069
8128
|
}
|
|
@@ -8145,8 +8204,7 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
8145
8204
|
body: await parseBody(output.body, context),
|
|
8146
8205
|
};
|
|
8147
8206
|
let response;
|
|
8148
|
-
|
|
8149
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8150
8208
|
switch (errorCode) {
|
|
8151
8209
|
case "BadRequestException":
|
|
8152
8210
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8162,10 +8220,12 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
8162
8220
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8163
8221
|
default:
|
|
8164
8222
|
const parsedBody = parsedOutput.body;
|
|
8223
|
+
const $metadata = deserializeMetadata(output);
|
|
8224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8165
8225
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8166
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8167
8227
|
$fault: "client",
|
|
8168
|
-
$metadata
|
|
8228
|
+
$metadata,
|
|
8169
8229
|
});
|
|
8170
8230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8171
8231
|
}
|
|
@@ -8207,8 +8267,7 @@ const deserializeAws_restJson1GetIntegrationResponseCommandError = async (output
|
|
|
8207
8267
|
body: await parseBody(output.body, context),
|
|
8208
8268
|
};
|
|
8209
8269
|
let response;
|
|
8210
|
-
|
|
8211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8270
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8212
8271
|
switch (errorCode) {
|
|
8213
8272
|
case "BadRequestException":
|
|
8214
8273
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8224,10 +8283,12 @@ const deserializeAws_restJson1GetIntegrationResponseCommandError = async (output
|
|
|
8224
8283
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8225
8284
|
default:
|
|
8226
8285
|
const parsedBody = parsedOutput.body;
|
|
8286
|
+
const $metadata = deserializeMetadata(output);
|
|
8287
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8227
8288
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8228
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8229
8290
|
$fault: "client",
|
|
8230
|
-
$metadata
|
|
8291
|
+
$metadata,
|
|
8231
8292
|
});
|
|
8232
8293
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8233
8294
|
}
|
|
@@ -8293,8 +8354,7 @@ const deserializeAws_restJson1GetMethodCommandError = async (output, context) =>
|
|
|
8293
8354
|
body: await parseBody(output.body, context),
|
|
8294
8355
|
};
|
|
8295
8356
|
let response;
|
|
8296
|
-
|
|
8297
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8357
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8298
8358
|
switch (errorCode) {
|
|
8299
8359
|
case "NotFoundException":
|
|
8300
8360
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -8307,10 +8367,12 @@ const deserializeAws_restJson1GetMethodCommandError = async (output, context) =>
|
|
|
8307
8367
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8308
8368
|
default:
|
|
8309
8369
|
const parsedBody = parsedOutput.body;
|
|
8370
|
+
const $metadata = deserializeMetadata(output);
|
|
8371
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8310
8372
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8373
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8312
8374
|
$fault: "client",
|
|
8313
|
-
$metadata
|
|
8375
|
+
$metadata,
|
|
8314
8376
|
});
|
|
8315
8377
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8316
8378
|
}
|
|
@@ -8344,8 +8406,7 @@ const deserializeAws_restJson1GetMethodResponseCommandError = async (output, con
|
|
|
8344
8406
|
body: await parseBody(output.body, context),
|
|
8345
8407
|
};
|
|
8346
8408
|
let response;
|
|
8347
|
-
|
|
8348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8349
8410
|
switch (errorCode) {
|
|
8350
8411
|
case "NotFoundException":
|
|
8351
8412
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -8358,10 +8419,12 @@ const deserializeAws_restJson1GetMethodResponseCommandError = async (output, con
|
|
|
8358
8419
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8359
8420
|
default:
|
|
8360
8421
|
const parsedBody = parsedOutput.body;
|
|
8422
|
+
const $metadata = deserializeMetadata(output);
|
|
8423
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8361
8424
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8425
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8363
8426
|
$fault: "client",
|
|
8364
|
-
$metadata
|
|
8427
|
+
$metadata,
|
|
8365
8428
|
});
|
|
8366
8429
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8367
8430
|
}
|
|
@@ -8403,8 +8466,7 @@ const deserializeAws_restJson1GetModelCommandError = async (output, context) =>
|
|
|
8403
8466
|
body: await parseBody(output.body, context),
|
|
8404
8467
|
};
|
|
8405
8468
|
let response;
|
|
8406
|
-
|
|
8407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8408
8470
|
switch (errorCode) {
|
|
8409
8471
|
case "BadRequestException":
|
|
8410
8472
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8420,10 +8482,12 @@ const deserializeAws_restJson1GetModelCommandError = async (output, context) =>
|
|
|
8420
8482
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8421
8483
|
default:
|
|
8422
8484
|
const parsedBody = parsedOutput.body;
|
|
8485
|
+
const $metadata = deserializeMetadata(output);
|
|
8486
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8423
8487
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8488
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8425
8489
|
$fault: "client",
|
|
8426
|
-
$metadata
|
|
8490
|
+
$metadata,
|
|
8427
8491
|
});
|
|
8428
8492
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8429
8493
|
}
|
|
@@ -8453,8 +8517,7 @@ const deserializeAws_restJson1GetModelsCommandError = async (output, context) =>
|
|
|
8453
8517
|
body: await parseBody(output.body, context),
|
|
8454
8518
|
};
|
|
8455
8519
|
let response;
|
|
8456
|
-
|
|
8457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8458
8521
|
switch (errorCode) {
|
|
8459
8522
|
case "BadRequestException":
|
|
8460
8523
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8470,10 +8533,12 @@ const deserializeAws_restJson1GetModelsCommandError = async (output, context) =>
|
|
|
8470
8533
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8471
8534
|
default:
|
|
8472
8535
|
const parsedBody = parsedOutput.body;
|
|
8536
|
+
const $metadata = deserializeMetadata(output);
|
|
8537
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8473
8538
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8539
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8475
8540
|
$fault: "client",
|
|
8476
|
-
$metadata
|
|
8541
|
+
$metadata,
|
|
8477
8542
|
});
|
|
8478
8543
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8479
8544
|
}
|
|
@@ -8499,8 +8564,7 @@ const deserializeAws_restJson1GetModelTemplateCommandError = async (output, cont
|
|
|
8499
8564
|
body: await parseBody(output.body, context),
|
|
8500
8565
|
};
|
|
8501
8566
|
let response;
|
|
8502
|
-
|
|
8503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8504
8568
|
switch (errorCode) {
|
|
8505
8569
|
case "BadRequestException":
|
|
8506
8570
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8516,10 +8580,12 @@ const deserializeAws_restJson1GetModelTemplateCommandError = async (output, cont
|
|
|
8516
8580
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8517
8581
|
default:
|
|
8518
8582
|
const parsedBody = parsedOutput.body;
|
|
8583
|
+
const $metadata = deserializeMetadata(output);
|
|
8584
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8519
8585
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8586
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8521
8587
|
$fault: "client",
|
|
8522
|
-
$metadata
|
|
8588
|
+
$metadata,
|
|
8523
8589
|
});
|
|
8524
8590
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8525
8591
|
}
|
|
@@ -8557,8 +8623,7 @@ const deserializeAws_restJson1GetRequestValidatorCommandError = async (output, c
|
|
|
8557
8623
|
body: await parseBody(output.body, context),
|
|
8558
8624
|
};
|
|
8559
8625
|
let response;
|
|
8560
|
-
|
|
8561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8562
8627
|
switch (errorCode) {
|
|
8563
8628
|
case "BadRequestException":
|
|
8564
8629
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8574,10 +8639,12 @@ const deserializeAws_restJson1GetRequestValidatorCommandError = async (output, c
|
|
|
8574
8639
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8575
8640
|
default:
|
|
8576
8641
|
const parsedBody = parsedOutput.body;
|
|
8642
|
+
const $metadata = deserializeMetadata(output);
|
|
8643
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8577
8644
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8578
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8645
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8579
8646
|
$fault: "client",
|
|
8580
|
-
$metadata
|
|
8647
|
+
$metadata,
|
|
8581
8648
|
});
|
|
8582
8649
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8583
8650
|
}
|
|
@@ -8607,8 +8674,7 @@ const deserializeAws_restJson1GetRequestValidatorsCommandError = async (output,
|
|
|
8607
8674
|
body: await parseBody(output.body, context),
|
|
8608
8675
|
};
|
|
8609
8676
|
let response;
|
|
8610
|
-
|
|
8611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8612
8678
|
switch (errorCode) {
|
|
8613
8679
|
case "BadRequestException":
|
|
8614
8680
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8624,10 +8690,12 @@ const deserializeAws_restJson1GetRequestValidatorsCommandError = async (output,
|
|
|
8624
8690
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8625
8691
|
default:
|
|
8626
8692
|
const parsedBody = parsedOutput.body;
|
|
8693
|
+
const $metadata = deserializeMetadata(output);
|
|
8694
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8627
8695
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8628
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8629
8697
|
$fault: "client",
|
|
8630
|
-
$metadata
|
|
8698
|
+
$metadata,
|
|
8631
8699
|
});
|
|
8632
8700
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8633
8701
|
}
|
|
@@ -8669,8 +8737,7 @@ const deserializeAws_restJson1GetResourceCommandError = async (output, context)
|
|
|
8669
8737
|
body: await parseBody(output.body, context),
|
|
8670
8738
|
};
|
|
8671
8739
|
let response;
|
|
8672
|
-
|
|
8673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8740
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8674
8741
|
switch (errorCode) {
|
|
8675
8742
|
case "NotFoundException":
|
|
8676
8743
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -8683,10 +8750,12 @@ const deserializeAws_restJson1GetResourceCommandError = async (output, context)
|
|
|
8683
8750
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8684
8751
|
default:
|
|
8685
8752
|
const parsedBody = parsedOutput.body;
|
|
8753
|
+
const $metadata = deserializeMetadata(output);
|
|
8754
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8686
8755
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8688
8757
|
$fault: "client",
|
|
8689
|
-
$metadata
|
|
8758
|
+
$metadata,
|
|
8690
8759
|
});
|
|
8691
8760
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8692
8761
|
}
|
|
@@ -8716,8 +8785,7 @@ const deserializeAws_restJson1GetResourcesCommandError = async (output, context)
|
|
|
8716
8785
|
body: await parseBody(output.body, context),
|
|
8717
8786
|
};
|
|
8718
8787
|
let response;
|
|
8719
|
-
|
|
8720
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8721
8789
|
switch (errorCode) {
|
|
8722
8790
|
case "BadRequestException":
|
|
8723
8791
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8733,10 +8801,12 @@ const deserializeAws_restJson1GetResourcesCommandError = async (output, context)
|
|
|
8733
8801
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8734
8802
|
default:
|
|
8735
8803
|
const parsedBody = parsedOutput.body;
|
|
8804
|
+
const $metadata = deserializeMetadata(output);
|
|
8805
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8736
8806
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8737
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8807
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8738
8808
|
$fault: "client",
|
|
8739
|
-
$metadata
|
|
8809
|
+
$metadata,
|
|
8740
8810
|
});
|
|
8741
8811
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8742
8812
|
}
|
|
@@ -8810,8 +8880,7 @@ const deserializeAws_restJson1GetRestApiCommandError = async (output, context) =
|
|
|
8810
8880
|
body: await parseBody(output.body, context),
|
|
8811
8881
|
};
|
|
8812
8882
|
let response;
|
|
8813
|
-
|
|
8814
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8815
8884
|
switch (errorCode) {
|
|
8816
8885
|
case "BadRequestException":
|
|
8817
8886
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8827,10 +8896,12 @@ const deserializeAws_restJson1GetRestApiCommandError = async (output, context) =
|
|
|
8827
8896
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8828
8897
|
default:
|
|
8829
8898
|
const parsedBody = parsedOutput.body;
|
|
8899
|
+
const $metadata = deserializeMetadata(output);
|
|
8900
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8830
8901
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8831
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8902
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8832
8903
|
$fault: "client",
|
|
8833
|
-
$metadata
|
|
8904
|
+
$metadata,
|
|
8834
8905
|
});
|
|
8835
8906
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8836
8907
|
}
|
|
@@ -8860,8 +8931,7 @@ const deserializeAws_restJson1GetRestApisCommandError = async (output, context)
|
|
|
8860
8931
|
body: await parseBody(output.body, context),
|
|
8861
8932
|
};
|
|
8862
8933
|
let response;
|
|
8863
|
-
|
|
8864
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8865
8935
|
switch (errorCode) {
|
|
8866
8936
|
case "BadRequestException":
|
|
8867
8937
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8877,10 +8947,12 @@ const deserializeAws_restJson1GetRestApisCommandError = async (output, context)
|
|
|
8877
8947
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8878
8948
|
default:
|
|
8879
8949
|
const parsedBody = parsedOutput.body;
|
|
8950
|
+
const $metadata = deserializeMetadata(output);
|
|
8951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8880
8952
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8881
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8882
8954
|
$fault: "client",
|
|
8883
|
-
$metadata
|
|
8955
|
+
$metadata,
|
|
8884
8956
|
});
|
|
8885
8957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8886
8958
|
}
|
|
@@ -8912,8 +8984,7 @@ const deserializeAws_restJson1GetSdkCommandError = async (output, context) => {
|
|
|
8912
8984
|
body: await parseBody(output.body, context),
|
|
8913
8985
|
};
|
|
8914
8986
|
let response;
|
|
8915
|
-
|
|
8916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8987
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8917
8988
|
switch (errorCode) {
|
|
8918
8989
|
case "BadRequestException":
|
|
8919
8990
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8935,10 +9006,12 @@ const deserializeAws_restJson1GetSdkCommandError = async (output, context) => {
|
|
|
8935
9006
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8936
9007
|
default:
|
|
8937
9008
|
const parsedBody = parsedOutput.body;
|
|
9009
|
+
const $metadata = deserializeMetadata(output);
|
|
9010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8938
9011
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8939
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8940
9013
|
$fault: "client",
|
|
8941
|
-
$metadata
|
|
9014
|
+
$metadata,
|
|
8942
9015
|
});
|
|
8943
9016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8944
9017
|
}
|
|
@@ -8976,8 +9049,7 @@ const deserializeAws_restJson1GetSdkTypeCommandError = async (output, context) =
|
|
|
8976
9049
|
body: await parseBody(output.body, context),
|
|
8977
9050
|
};
|
|
8978
9051
|
let response;
|
|
8979
|
-
|
|
8980
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8981
9053
|
switch (errorCode) {
|
|
8982
9054
|
case "BadRequestException":
|
|
8983
9055
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8993,10 +9065,12 @@ const deserializeAws_restJson1GetSdkTypeCommandError = async (output, context) =
|
|
|
8993
9065
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8994
9066
|
default:
|
|
8995
9067
|
const parsedBody = parsedOutput.body;
|
|
9068
|
+
const $metadata = deserializeMetadata(output);
|
|
9069
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8996
9070
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8998
9072
|
$fault: "client",
|
|
8999
|
-
$metadata
|
|
9073
|
+
$metadata,
|
|
9000
9074
|
});
|
|
9001
9075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9002
9076
|
}
|
|
@@ -9022,8 +9096,7 @@ const deserializeAws_restJson1GetSdkTypesCommandError = async (output, context)
|
|
|
9022
9096
|
body: await parseBody(output.body, context),
|
|
9023
9097
|
};
|
|
9024
9098
|
let response;
|
|
9025
|
-
|
|
9026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9027
9100
|
switch (errorCode) {
|
|
9028
9101
|
case "BadRequestException":
|
|
9029
9102
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9039,10 +9112,12 @@ const deserializeAws_restJson1GetSdkTypesCommandError = async (output, context)
|
|
|
9039
9112
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9040
9113
|
default:
|
|
9041
9114
|
const parsedBody = parsedOutput.body;
|
|
9115
|
+
const $metadata = deserializeMetadata(output);
|
|
9116
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9042
9117
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9118
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9044
9119
|
$fault: "client",
|
|
9045
|
-
$metadata
|
|
9120
|
+
$metadata,
|
|
9046
9121
|
});
|
|
9047
9122
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9048
9123
|
}
|
|
@@ -9132,8 +9207,7 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
|
|
|
9132
9207
|
body: await parseBody(output.body, context),
|
|
9133
9208
|
};
|
|
9134
9209
|
let response;
|
|
9135
|
-
|
|
9136
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9137
9211
|
switch (errorCode) {
|
|
9138
9212
|
case "BadRequestException":
|
|
9139
9213
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9155,10 +9229,12 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
|
|
|
9155
9229
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9156
9230
|
default:
|
|
9157
9231
|
const parsedBody = parsedOutput.body;
|
|
9232
|
+
const $metadata = deserializeMetadata(output);
|
|
9233
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9158
9234
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9235
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9160
9236
|
$fault: "client",
|
|
9161
|
-
$metadata
|
|
9237
|
+
$metadata,
|
|
9162
9238
|
});
|
|
9163
9239
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9164
9240
|
}
|
|
@@ -9184,8 +9260,7 @@ const deserializeAws_restJson1GetStagesCommandError = async (output, context) =>
|
|
|
9184
9260
|
body: await parseBody(output.body, context),
|
|
9185
9261
|
};
|
|
9186
9262
|
let response;
|
|
9187
|
-
|
|
9188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9263
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9189
9264
|
switch (errorCode) {
|
|
9190
9265
|
case "BadRequestException":
|
|
9191
9266
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9207,10 +9282,12 @@ const deserializeAws_restJson1GetStagesCommandError = async (output, context) =>
|
|
|
9207
9282
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9208
9283
|
default:
|
|
9209
9284
|
const parsedBody = parsedOutput.body;
|
|
9285
|
+
const $metadata = deserializeMetadata(output);
|
|
9286
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9210
9287
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9288
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9212
9289
|
$fault: "client",
|
|
9213
|
-
$metadata
|
|
9290
|
+
$metadata,
|
|
9214
9291
|
});
|
|
9215
9292
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9216
9293
|
}
|
|
@@ -9236,8 +9313,7 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
9236
9313
|
body: await parseBody(output.body, context),
|
|
9237
9314
|
};
|
|
9238
9315
|
let response;
|
|
9239
|
-
|
|
9240
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9316
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9241
9317
|
switch (errorCode) {
|
|
9242
9318
|
case "BadRequestException":
|
|
9243
9319
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9253,10 +9329,12 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
9253
9329
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9254
9330
|
default:
|
|
9255
9331
|
const parsedBody = parsedOutput.body;
|
|
9332
|
+
const $metadata = deserializeMetadata(output);
|
|
9333
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9256
9334
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9335
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9258
9336
|
$fault: "client",
|
|
9259
|
-
$metadata
|
|
9337
|
+
$metadata,
|
|
9260
9338
|
});
|
|
9261
9339
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9262
9340
|
}
|
|
@@ -9298,8 +9376,7 @@ const deserializeAws_restJson1GetUsageCommandError = async (output, context) =>
|
|
|
9298
9376
|
body: await parseBody(output.body, context),
|
|
9299
9377
|
};
|
|
9300
9378
|
let response;
|
|
9301
|
-
|
|
9302
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9303
9380
|
switch (errorCode) {
|
|
9304
9381
|
case "BadRequestException":
|
|
9305
9382
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9315,10 +9392,12 @@ const deserializeAws_restJson1GetUsageCommandError = async (output, context) =>
|
|
|
9315
9392
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9316
9393
|
default:
|
|
9317
9394
|
const parsedBody = parsedOutput.body;
|
|
9395
|
+
const $metadata = deserializeMetadata(output);
|
|
9396
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9318
9397
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9319
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9398
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9320
9399
|
$fault: "client",
|
|
9321
|
-
$metadata
|
|
9400
|
+
$metadata,
|
|
9322
9401
|
});
|
|
9323
9402
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9324
9403
|
}
|
|
@@ -9372,8 +9451,7 @@ const deserializeAws_restJson1GetUsagePlanCommandError = async (output, context)
|
|
|
9372
9451
|
body: await parseBody(output.body, context),
|
|
9373
9452
|
};
|
|
9374
9453
|
let response;
|
|
9375
|
-
|
|
9376
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9377
9455
|
switch (errorCode) {
|
|
9378
9456
|
case "BadRequestException":
|
|
9379
9457
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9389,10 +9467,12 @@ const deserializeAws_restJson1GetUsagePlanCommandError = async (output, context)
|
|
|
9389
9467
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9390
9468
|
default:
|
|
9391
9469
|
const parsedBody = parsedOutput.body;
|
|
9470
|
+
const $metadata = deserializeMetadata(output);
|
|
9471
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9392
9472
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9473
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9394
9474
|
$fault: "client",
|
|
9395
|
-
$metadata
|
|
9475
|
+
$metadata,
|
|
9396
9476
|
});
|
|
9397
9477
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9398
9478
|
}
|
|
@@ -9430,8 +9510,7 @@ const deserializeAws_restJson1GetUsagePlanKeyCommandError = async (output, conte
|
|
|
9430
9510
|
body: await parseBody(output.body, context),
|
|
9431
9511
|
};
|
|
9432
9512
|
let response;
|
|
9433
|
-
|
|
9434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9513
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9435
9514
|
switch (errorCode) {
|
|
9436
9515
|
case "BadRequestException":
|
|
9437
9516
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9447,10 +9526,12 @@ const deserializeAws_restJson1GetUsagePlanKeyCommandError = async (output, conte
|
|
|
9447
9526
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9448
9527
|
default:
|
|
9449
9528
|
const parsedBody = parsedOutput.body;
|
|
9529
|
+
const $metadata = deserializeMetadata(output);
|
|
9530
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9450
9531
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9532
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9452
9533
|
$fault: "client",
|
|
9453
|
-
$metadata
|
|
9534
|
+
$metadata,
|
|
9454
9535
|
});
|
|
9455
9536
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9456
9537
|
}
|
|
@@ -9480,8 +9561,7 @@ const deserializeAws_restJson1GetUsagePlanKeysCommandError = async (output, cont
|
|
|
9480
9561
|
body: await parseBody(output.body, context),
|
|
9481
9562
|
};
|
|
9482
9563
|
let response;
|
|
9483
|
-
|
|
9484
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9485
9565
|
switch (errorCode) {
|
|
9486
9566
|
case "BadRequestException":
|
|
9487
9567
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9497,10 +9577,12 @@ const deserializeAws_restJson1GetUsagePlanKeysCommandError = async (output, cont
|
|
|
9497
9577
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9498
9578
|
default:
|
|
9499
9579
|
const parsedBody = parsedOutput.body;
|
|
9580
|
+
const $metadata = deserializeMetadata(output);
|
|
9581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9500
9582
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9501
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9502
9584
|
$fault: "client",
|
|
9503
|
-
$metadata
|
|
9585
|
+
$metadata,
|
|
9504
9586
|
});
|
|
9505
9587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9506
9588
|
}
|
|
@@ -9530,8 +9612,7 @@ const deserializeAws_restJson1GetUsagePlansCommandError = async (output, context
|
|
|
9530
9612
|
body: await parseBody(output.body, context),
|
|
9531
9613
|
};
|
|
9532
9614
|
let response;
|
|
9533
|
-
|
|
9534
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9535
9616
|
switch (errorCode) {
|
|
9536
9617
|
case "BadRequestException":
|
|
9537
9618
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9547,10 +9628,12 @@ const deserializeAws_restJson1GetUsagePlansCommandError = async (output, context
|
|
|
9547
9628
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9548
9629
|
default:
|
|
9549
9630
|
const parsedBody = parsedOutput.body;
|
|
9631
|
+
const $metadata = deserializeMetadata(output);
|
|
9632
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9550
9633
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9551
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9634
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9552
9635
|
$fault: "client",
|
|
9553
|
-
$metadata
|
|
9636
|
+
$metadata,
|
|
9554
9637
|
});
|
|
9555
9638
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9556
9639
|
}
|
|
@@ -9600,8 +9683,7 @@ const deserializeAws_restJson1GetVpcLinkCommandError = async (output, context) =
|
|
|
9600
9683
|
body: await parseBody(output.body, context),
|
|
9601
9684
|
};
|
|
9602
9685
|
let response;
|
|
9603
|
-
|
|
9604
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9686
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9605
9687
|
switch (errorCode) {
|
|
9606
9688
|
case "BadRequestException":
|
|
9607
9689
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9617,10 +9699,12 @@ const deserializeAws_restJson1GetVpcLinkCommandError = async (output, context) =
|
|
|
9617
9699
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9618
9700
|
default:
|
|
9619
9701
|
const parsedBody = parsedOutput.body;
|
|
9702
|
+
const $metadata = deserializeMetadata(output);
|
|
9703
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9620
9704
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9705
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9622
9706
|
$fault: "client",
|
|
9623
|
-
$metadata
|
|
9707
|
+
$metadata,
|
|
9624
9708
|
});
|
|
9625
9709
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9626
9710
|
}
|
|
@@ -9650,8 +9734,7 @@ const deserializeAws_restJson1GetVpcLinksCommandError = async (output, context)
|
|
|
9650
9734
|
body: await parseBody(output.body, context),
|
|
9651
9735
|
};
|
|
9652
9736
|
let response;
|
|
9653
|
-
|
|
9654
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9655
9738
|
switch (errorCode) {
|
|
9656
9739
|
case "BadRequestException":
|
|
9657
9740
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9667,10 +9750,12 @@ const deserializeAws_restJson1GetVpcLinksCommandError = async (output, context)
|
|
|
9667
9750
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9668
9751
|
default:
|
|
9669
9752
|
const parsedBody = parsedOutput.body;
|
|
9753
|
+
const $metadata = deserializeMetadata(output);
|
|
9754
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9670
9755
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9671
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9672
9757
|
$fault: "client",
|
|
9673
|
-
$metadata
|
|
9758
|
+
$metadata,
|
|
9674
9759
|
});
|
|
9675
9760
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9676
9761
|
}
|
|
@@ -9700,8 +9785,7 @@ const deserializeAws_restJson1ImportApiKeysCommandError = async (output, context
|
|
|
9700
9785
|
body: await parseBody(output.body, context),
|
|
9701
9786
|
};
|
|
9702
9787
|
let response;
|
|
9703
|
-
|
|
9704
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9705
9789
|
switch (errorCode) {
|
|
9706
9790
|
case "BadRequestException":
|
|
9707
9791
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9723,10 +9807,12 @@ const deserializeAws_restJson1ImportApiKeysCommandError = async (output, context
|
|
|
9723
9807
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9724
9808
|
default:
|
|
9725
9809
|
const parsedBody = parsedOutput.body;
|
|
9810
|
+
const $metadata = deserializeMetadata(output);
|
|
9811
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9726
9812
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9813
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9728
9814
|
$fault: "client",
|
|
9729
|
-
$metadata
|
|
9815
|
+
$metadata,
|
|
9730
9816
|
});
|
|
9731
9817
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9732
9818
|
}
|
|
@@ -9756,8 +9842,7 @@ const deserializeAws_restJson1ImportDocumentationPartsCommandError = async (outp
|
|
|
9756
9842
|
body: await parseBody(output.body, context),
|
|
9757
9843
|
};
|
|
9758
9844
|
let response;
|
|
9759
|
-
|
|
9760
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9761
9846
|
switch (errorCode) {
|
|
9762
9847
|
case "BadRequestException":
|
|
9763
9848
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9779,10 +9864,12 @@ const deserializeAws_restJson1ImportDocumentationPartsCommandError = async (outp
|
|
|
9779
9864
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9780
9865
|
default:
|
|
9781
9866
|
const parsedBody = parsedOutput.body;
|
|
9867
|
+
const $metadata = deserializeMetadata(output);
|
|
9868
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9782
9869
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9784
9871
|
$fault: "client",
|
|
9785
|
-
$metadata
|
|
9872
|
+
$metadata,
|
|
9786
9873
|
});
|
|
9787
9874
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9788
9875
|
}
|
|
@@ -9856,8 +9943,7 @@ const deserializeAws_restJson1ImportRestApiCommandError = async (output, context
|
|
|
9856
9943
|
body: await parseBody(output.body, context),
|
|
9857
9944
|
};
|
|
9858
9945
|
let response;
|
|
9859
|
-
|
|
9860
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9861
9947
|
switch (errorCode) {
|
|
9862
9948
|
case "BadRequestException":
|
|
9863
9949
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9879,10 +9965,12 @@ const deserializeAws_restJson1ImportRestApiCommandError = async (output, context
|
|
|
9879
9965
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9880
9966
|
default:
|
|
9881
9967
|
const parsedBody = parsedOutput.body;
|
|
9968
|
+
const $metadata = deserializeMetadata(output);
|
|
9969
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9882
9970
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9971
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9884
9972
|
$fault: "client",
|
|
9885
|
-
$metadata
|
|
9973
|
+
$metadata,
|
|
9886
9974
|
});
|
|
9887
9975
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9888
9976
|
}
|
|
@@ -9924,8 +10012,7 @@ const deserializeAws_restJson1PutGatewayResponseCommandError = async (output, co
|
|
|
9924
10012
|
body: await parseBody(output.body, context),
|
|
9925
10013
|
};
|
|
9926
10014
|
let response;
|
|
9927
|
-
|
|
9928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9929
10016
|
switch (errorCode) {
|
|
9930
10017
|
case "BadRequestException":
|
|
9931
10018
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9947,10 +10034,12 @@ const deserializeAws_restJson1PutGatewayResponseCommandError = async (output, co
|
|
|
9947
10034
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9948
10035
|
default:
|
|
9949
10036
|
const parsedBody = parsedOutput.body;
|
|
10037
|
+
const $metadata = deserializeMetadata(output);
|
|
10038
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9950
10039
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9951
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10040
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9952
10041
|
$fault: "client",
|
|
9953
|
-
$metadata
|
|
10042
|
+
$metadata,
|
|
9954
10043
|
});
|
|
9955
10044
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9956
10045
|
}
|
|
@@ -10032,8 +10121,7 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
10032
10121
|
body: await parseBody(output.body, context),
|
|
10033
10122
|
};
|
|
10034
10123
|
let response;
|
|
10035
|
-
|
|
10036
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10037
10125
|
switch (errorCode) {
|
|
10038
10126
|
case "BadRequestException":
|
|
10039
10127
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10055,10 +10143,12 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
10055
10143
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10056
10144
|
default:
|
|
10057
10145
|
const parsedBody = parsedOutput.body;
|
|
10146
|
+
const $metadata = deserializeMetadata(output);
|
|
10147
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10058
10148
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10149
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10060
10150
|
$fault: "client",
|
|
10061
|
-
$metadata
|
|
10151
|
+
$metadata,
|
|
10062
10152
|
});
|
|
10063
10153
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10064
10154
|
}
|
|
@@ -10100,8 +10190,7 @@ const deserializeAws_restJson1PutIntegrationResponseCommandError = async (output
|
|
|
10100
10190
|
body: await parseBody(output.body, context),
|
|
10101
10191
|
};
|
|
10102
10192
|
let response;
|
|
10103
|
-
|
|
10104
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10105
10194
|
switch (errorCode) {
|
|
10106
10195
|
case "BadRequestException":
|
|
10107
10196
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10123,10 +10212,12 @@ const deserializeAws_restJson1PutIntegrationResponseCommandError = async (output
|
|
|
10123
10212
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10124
10213
|
default:
|
|
10125
10214
|
const parsedBody = parsedOutput.body;
|
|
10215
|
+
const $metadata = deserializeMetadata(output);
|
|
10216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10126
10217
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10128
10219
|
$fault: "client",
|
|
10129
|
-
$metadata
|
|
10220
|
+
$metadata,
|
|
10130
10221
|
});
|
|
10131
10222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10132
10223
|
}
|
|
@@ -10192,8 +10283,7 @@ const deserializeAws_restJson1PutMethodCommandError = async (output, context) =>
|
|
|
10192
10283
|
body: await parseBody(output.body, context),
|
|
10193
10284
|
};
|
|
10194
10285
|
let response;
|
|
10195
|
-
|
|
10196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10197
10287
|
switch (errorCode) {
|
|
10198
10288
|
case "BadRequestException":
|
|
10199
10289
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10215,10 +10305,12 @@ const deserializeAws_restJson1PutMethodCommandError = async (output, context) =>
|
|
|
10215
10305
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10216
10306
|
default:
|
|
10217
10307
|
const parsedBody = parsedOutput.body;
|
|
10308
|
+
const $metadata = deserializeMetadata(output);
|
|
10309
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10218
10310
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10220
10312
|
$fault: "client",
|
|
10221
|
-
$metadata
|
|
10313
|
+
$metadata,
|
|
10222
10314
|
});
|
|
10223
10315
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10224
10316
|
}
|
|
@@ -10252,8 +10344,7 @@ const deserializeAws_restJson1PutMethodResponseCommandError = async (output, con
|
|
|
10252
10344
|
body: await parseBody(output.body, context),
|
|
10253
10345
|
};
|
|
10254
10346
|
let response;
|
|
10255
|
-
|
|
10256
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10347
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10257
10348
|
switch (errorCode) {
|
|
10258
10349
|
case "BadRequestException":
|
|
10259
10350
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10275,10 +10366,12 @@ const deserializeAws_restJson1PutMethodResponseCommandError = async (output, con
|
|
|
10275
10366
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10276
10367
|
default:
|
|
10277
10368
|
const parsedBody = parsedOutput.body;
|
|
10369
|
+
const $metadata = deserializeMetadata(output);
|
|
10370
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10278
10371
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10279
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10280
10373
|
$fault: "client",
|
|
10281
|
-
$metadata
|
|
10374
|
+
$metadata,
|
|
10282
10375
|
});
|
|
10283
10376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10284
10377
|
}
|
|
@@ -10352,8 +10445,7 @@ const deserializeAws_restJson1PutRestApiCommandError = async (output, context) =
|
|
|
10352
10445
|
body: await parseBody(output.body, context),
|
|
10353
10446
|
};
|
|
10354
10447
|
let response;
|
|
10355
|
-
|
|
10356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10357
10449
|
switch (errorCode) {
|
|
10358
10450
|
case "BadRequestException":
|
|
10359
10451
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10375,10 +10467,12 @@ const deserializeAws_restJson1PutRestApiCommandError = async (output, context) =
|
|
|
10375
10467
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10376
10468
|
default:
|
|
10377
10469
|
const parsedBody = parsedOutput.body;
|
|
10470
|
+
const $metadata = deserializeMetadata(output);
|
|
10471
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10378
10472
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10473
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10380
10474
|
$fault: "client",
|
|
10381
|
-
$metadata
|
|
10475
|
+
$metadata,
|
|
10382
10476
|
});
|
|
10383
10477
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10384
10478
|
}
|
|
@@ -10400,8 +10494,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
10400
10494
|
body: await parseBody(output.body, context),
|
|
10401
10495
|
};
|
|
10402
10496
|
let response;
|
|
10403
|
-
|
|
10404
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10405
10498
|
switch (errorCode) {
|
|
10406
10499
|
case "BadRequestException":
|
|
10407
10500
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10423,10 +10516,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
10423
10516
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10424
10517
|
default:
|
|
10425
10518
|
const parsedBody = parsedOutput.body;
|
|
10519
|
+
const $metadata = deserializeMetadata(output);
|
|
10520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10426
10521
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10427
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10428
10523
|
$fault: "client",
|
|
10429
|
-
$metadata
|
|
10524
|
+
$metadata,
|
|
10430
10525
|
});
|
|
10431
10526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10432
10527
|
}
|
|
@@ -10476,8 +10571,7 @@ const deserializeAws_restJson1TestInvokeAuthorizerCommandError = async (output,
|
|
|
10476
10571
|
body: await parseBody(output.body, context),
|
|
10477
10572
|
};
|
|
10478
10573
|
let response;
|
|
10479
|
-
|
|
10480
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10574
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10481
10575
|
switch (errorCode) {
|
|
10482
10576
|
case "BadRequestException":
|
|
10483
10577
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10493,10 +10587,12 @@ const deserializeAws_restJson1TestInvokeAuthorizerCommandError = async (output,
|
|
|
10493
10587
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10494
10588
|
default:
|
|
10495
10589
|
const parsedBody = parsedOutput.body;
|
|
10590
|
+
const $metadata = deserializeMetadata(output);
|
|
10591
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10496
10592
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10497
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10593
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10498
10594
|
$fault: "client",
|
|
10499
|
-
$metadata
|
|
10595
|
+
$metadata,
|
|
10500
10596
|
});
|
|
10501
10597
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10502
10598
|
}
|
|
@@ -10542,8 +10638,7 @@ const deserializeAws_restJson1TestInvokeMethodCommandError = async (output, cont
|
|
|
10542
10638
|
body: await parseBody(output.body, context),
|
|
10543
10639
|
};
|
|
10544
10640
|
let response;
|
|
10545
|
-
|
|
10546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10547
10642
|
switch (errorCode) {
|
|
10548
10643
|
case "BadRequestException":
|
|
10549
10644
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10559,10 +10654,12 @@ const deserializeAws_restJson1TestInvokeMethodCommandError = async (output, cont
|
|
|
10559
10654
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10560
10655
|
default:
|
|
10561
10656
|
const parsedBody = parsedOutput.body;
|
|
10657
|
+
const $metadata = deserializeMetadata(output);
|
|
10658
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10562
10659
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10563
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10660
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10564
10661
|
$fault: "client",
|
|
10565
|
-
$metadata
|
|
10662
|
+
$metadata,
|
|
10566
10663
|
});
|
|
10567
10664
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10568
10665
|
}
|
|
@@ -10584,8 +10681,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
10584
10681
|
body: await parseBody(output.body, context),
|
|
10585
10682
|
};
|
|
10586
10683
|
let response;
|
|
10587
|
-
|
|
10588
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10684
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10589
10685
|
switch (errorCode) {
|
|
10590
10686
|
case "BadRequestException":
|
|
10591
10687
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10607,10 +10703,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
10607
10703
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10608
10704
|
default:
|
|
10609
10705
|
const parsedBody = parsedOutput.body;
|
|
10706
|
+
const $metadata = deserializeMetadata(output);
|
|
10707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10610
10708
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10612
10710
|
$fault: "client",
|
|
10613
|
-
$metadata
|
|
10711
|
+
$metadata,
|
|
10614
10712
|
});
|
|
10615
10713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10616
10714
|
}
|
|
@@ -10648,8 +10746,7 @@ const deserializeAws_restJson1UpdateAccountCommandError = async (output, context
|
|
|
10648
10746
|
body: await parseBody(output.body, context),
|
|
10649
10747
|
};
|
|
10650
10748
|
let response;
|
|
10651
|
-
|
|
10652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10653
10750
|
switch (errorCode) {
|
|
10654
10751
|
case "BadRequestException":
|
|
10655
10752
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10671,10 +10768,12 @@ const deserializeAws_restJson1UpdateAccountCommandError = async (output, context
|
|
|
10671
10768
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10672
10769
|
default:
|
|
10673
10770
|
const parsedBody = parsedOutput.body;
|
|
10771
|
+
const $metadata = deserializeMetadata(output);
|
|
10772
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10674
10773
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10675
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10774
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10676
10775
|
$fault: "client",
|
|
10677
|
-
$metadata
|
|
10776
|
+
$metadata,
|
|
10678
10777
|
});
|
|
10679
10778
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10680
10779
|
}
|
|
@@ -10736,8 +10835,7 @@ const deserializeAws_restJson1UpdateApiKeyCommandError = async (output, context)
|
|
|
10736
10835
|
body: await parseBody(output.body, context),
|
|
10737
10836
|
};
|
|
10738
10837
|
let response;
|
|
10739
|
-
|
|
10740
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10741
10839
|
switch (errorCode) {
|
|
10742
10840
|
case "BadRequestException":
|
|
10743
10841
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10759,10 +10857,12 @@ const deserializeAws_restJson1UpdateApiKeyCommandError = async (output, context)
|
|
|
10759
10857
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10760
10858
|
default:
|
|
10761
10859
|
const parsedBody = parsedOutput.body;
|
|
10860
|
+
const $metadata = deserializeMetadata(output);
|
|
10861
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10762
10862
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10863
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10764
10864
|
$fault: "client",
|
|
10765
|
-
$metadata
|
|
10865
|
+
$metadata,
|
|
10766
10866
|
});
|
|
10767
10867
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10768
10868
|
}
|
|
@@ -10824,8 +10924,7 @@ const deserializeAws_restJson1UpdateAuthorizerCommandError = async (output, cont
|
|
|
10824
10924
|
body: await parseBody(output.body, context),
|
|
10825
10925
|
};
|
|
10826
10926
|
let response;
|
|
10827
|
-
|
|
10828
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10927
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10829
10928
|
switch (errorCode) {
|
|
10830
10929
|
case "BadRequestException":
|
|
10831
10930
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10847,10 +10946,12 @@ const deserializeAws_restJson1UpdateAuthorizerCommandError = async (output, cont
|
|
|
10847
10946
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10848
10947
|
default:
|
|
10849
10948
|
const parsedBody = parsedOutput.body;
|
|
10949
|
+
const $metadata = deserializeMetadata(output);
|
|
10950
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10850
10951
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10952
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10852
10953
|
$fault: "client",
|
|
10853
|
-
$metadata
|
|
10954
|
+
$metadata,
|
|
10854
10955
|
});
|
|
10855
10956
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10856
10957
|
}
|
|
@@ -10884,8 +10985,7 @@ const deserializeAws_restJson1UpdateBasePathMappingCommandError = async (output,
|
|
|
10884
10985
|
body: await parseBody(output.body, context),
|
|
10885
10986
|
};
|
|
10886
10987
|
let response;
|
|
10887
|
-
|
|
10888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10889
10989
|
switch (errorCode) {
|
|
10890
10990
|
case "BadRequestException":
|
|
10891
10991
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10907,10 +11007,12 @@ const deserializeAws_restJson1UpdateBasePathMappingCommandError = async (output,
|
|
|
10907
11007
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10908
11008
|
default:
|
|
10909
11009
|
const parsedBody = parsedOutput.body;
|
|
11010
|
+
const $metadata = deserializeMetadata(output);
|
|
11011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10910
11012
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10912
11014
|
$fault: "client",
|
|
10913
|
-
$metadata
|
|
11015
|
+
$metadata,
|
|
10914
11016
|
});
|
|
10915
11017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10916
11018
|
}
|
|
@@ -10956,8 +11058,7 @@ const deserializeAws_restJson1UpdateClientCertificateCommandError = async (outpu
|
|
|
10956
11058
|
body: await parseBody(output.body, context),
|
|
10957
11059
|
};
|
|
10958
11060
|
let response;
|
|
10959
|
-
|
|
10960
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10961
11062
|
switch (errorCode) {
|
|
10962
11063
|
case "BadRequestException":
|
|
10963
11064
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10979,10 +11080,12 @@ const deserializeAws_restJson1UpdateClientCertificateCommandError = async (outpu
|
|
|
10979
11080
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10980
11081
|
default:
|
|
10981
11082
|
const parsedBody = parsedOutput.body;
|
|
11083
|
+
const $metadata = deserializeMetadata(output);
|
|
11084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10982
11085
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10983
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10984
11087
|
$fault: "client",
|
|
10985
|
-
$metadata
|
|
11088
|
+
$metadata,
|
|
10986
11089
|
});
|
|
10987
11090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10988
11091
|
}
|
|
@@ -11020,8 +11123,7 @@ const deserializeAws_restJson1UpdateDeploymentCommandError = async (output, cont
|
|
|
11020
11123
|
body: await parseBody(output.body, context),
|
|
11021
11124
|
};
|
|
11022
11125
|
let response;
|
|
11023
|
-
|
|
11024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11126
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11025
11127
|
switch (errorCode) {
|
|
11026
11128
|
case "BadRequestException":
|
|
11027
11129
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11046,10 +11148,12 @@ const deserializeAws_restJson1UpdateDeploymentCommandError = async (output, cont
|
|
|
11046
11148
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11047
11149
|
default:
|
|
11048
11150
|
const parsedBody = parsedOutput.body;
|
|
11151
|
+
const $metadata = deserializeMetadata(output);
|
|
11152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11049
11153
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11050
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11051
11155
|
$fault: "client",
|
|
11052
|
-
$metadata
|
|
11156
|
+
$metadata,
|
|
11053
11157
|
});
|
|
11054
11158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11055
11159
|
}
|
|
@@ -11083,8 +11187,7 @@ const deserializeAws_restJson1UpdateDocumentationPartCommandError = async (outpu
|
|
|
11083
11187
|
body: await parseBody(output.body, context),
|
|
11084
11188
|
};
|
|
11085
11189
|
let response;
|
|
11086
|
-
|
|
11087
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11088
11191
|
switch (errorCode) {
|
|
11089
11192
|
case "BadRequestException":
|
|
11090
11193
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11106,10 +11209,12 @@ const deserializeAws_restJson1UpdateDocumentationPartCommandError = async (outpu
|
|
|
11106
11209
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11107
11210
|
default:
|
|
11108
11211
|
const parsedBody = parsedOutput.body;
|
|
11212
|
+
const $metadata = deserializeMetadata(output);
|
|
11213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11109
11214
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11110
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11111
11216
|
$fault: "client",
|
|
11112
|
-
$metadata
|
|
11217
|
+
$metadata,
|
|
11113
11218
|
});
|
|
11114
11219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11115
11220
|
}
|
|
@@ -11143,8 +11248,7 @@ const deserializeAws_restJson1UpdateDocumentationVersionCommandError = async (ou
|
|
|
11143
11248
|
body: await parseBody(output.body, context),
|
|
11144
11249
|
};
|
|
11145
11250
|
let response;
|
|
11146
|
-
|
|
11147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11148
11252
|
switch (errorCode) {
|
|
11149
11253
|
case "BadRequestException":
|
|
11150
11254
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11166,10 +11270,12 @@ const deserializeAws_restJson1UpdateDocumentationVersionCommandError = async (ou
|
|
|
11166
11270
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11167
11271
|
default:
|
|
11168
11272
|
const parsedBody = parsedOutput.body;
|
|
11273
|
+
const $metadata = deserializeMetadata(output);
|
|
11274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11169
11275
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11170
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11171
11277
|
$fault: "client",
|
|
11172
|
-
$metadata
|
|
11278
|
+
$metadata,
|
|
11173
11279
|
});
|
|
11174
11280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11175
11281
|
}
|
|
@@ -11259,8 +11365,7 @@ const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, cont
|
|
|
11259
11365
|
body: await parseBody(output.body, context),
|
|
11260
11366
|
};
|
|
11261
11367
|
let response;
|
|
11262
|
-
|
|
11263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11264
11369
|
switch (errorCode) {
|
|
11265
11370
|
case "BadRequestException":
|
|
11266
11371
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11282,10 +11387,12 @@ const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, cont
|
|
|
11282
11387
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11283
11388
|
default:
|
|
11284
11389
|
const parsedBody = parsedOutput.body;
|
|
11390
|
+
const $metadata = deserializeMetadata(output);
|
|
11391
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11285
11392
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11286
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11393
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11287
11394
|
$fault: "client",
|
|
11288
|
-
$metadata
|
|
11395
|
+
$metadata,
|
|
11289
11396
|
});
|
|
11290
11397
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11291
11398
|
}
|
|
@@ -11327,8 +11434,7 @@ const deserializeAws_restJson1UpdateGatewayResponseCommandError = async (output,
|
|
|
11327
11434
|
body: await parseBody(output.body, context),
|
|
11328
11435
|
};
|
|
11329
11436
|
let response;
|
|
11330
|
-
|
|
11331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11332
11438
|
switch (errorCode) {
|
|
11333
11439
|
case "BadRequestException":
|
|
11334
11440
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11350,10 +11456,12 @@ const deserializeAws_restJson1UpdateGatewayResponseCommandError = async (output,
|
|
|
11350
11456
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11351
11457
|
default:
|
|
11352
11458
|
const parsedBody = parsedOutput.body;
|
|
11459
|
+
const $metadata = deserializeMetadata(output);
|
|
11460
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11353
11461
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11354
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11355
11463
|
$fault: "client",
|
|
11356
|
-
$metadata
|
|
11464
|
+
$metadata,
|
|
11357
11465
|
});
|
|
11358
11466
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11359
11467
|
}
|
|
@@ -11435,8 +11543,7 @@ const deserializeAws_restJson1UpdateIntegrationCommandError = async (output, con
|
|
|
11435
11543
|
body: await parseBody(output.body, context),
|
|
11436
11544
|
};
|
|
11437
11545
|
let response;
|
|
11438
|
-
|
|
11439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11440
11547
|
switch (errorCode) {
|
|
11441
11548
|
case "BadRequestException":
|
|
11442
11549
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11458,10 +11565,12 @@ const deserializeAws_restJson1UpdateIntegrationCommandError = async (output, con
|
|
|
11458
11565
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11459
11566
|
default:
|
|
11460
11567
|
const parsedBody = parsedOutput.body;
|
|
11568
|
+
const $metadata = deserializeMetadata(output);
|
|
11569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11461
11570
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11463
11572
|
$fault: "client",
|
|
11464
|
-
$metadata
|
|
11573
|
+
$metadata,
|
|
11465
11574
|
});
|
|
11466
11575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11467
11576
|
}
|
|
@@ -11503,8 +11612,7 @@ const deserializeAws_restJson1UpdateIntegrationResponseCommandError = async (out
|
|
|
11503
11612
|
body: await parseBody(output.body, context),
|
|
11504
11613
|
};
|
|
11505
11614
|
let response;
|
|
11506
|
-
|
|
11507
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11508
11616
|
switch (errorCode) {
|
|
11509
11617
|
case "BadRequestException":
|
|
11510
11618
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11526,10 +11634,12 @@ const deserializeAws_restJson1UpdateIntegrationResponseCommandError = async (out
|
|
|
11526
11634
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11527
11635
|
default:
|
|
11528
11636
|
const parsedBody = parsedOutput.body;
|
|
11637
|
+
const $metadata = deserializeMetadata(output);
|
|
11638
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11529
11639
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11640
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11531
11641
|
$fault: "client",
|
|
11532
|
-
$metadata
|
|
11642
|
+
$metadata,
|
|
11533
11643
|
});
|
|
11534
11644
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11535
11645
|
}
|
|
@@ -11595,8 +11705,7 @@ const deserializeAws_restJson1UpdateMethodCommandError = async (output, context)
|
|
|
11595
11705
|
body: await parseBody(output.body, context),
|
|
11596
11706
|
};
|
|
11597
11707
|
let response;
|
|
11598
|
-
|
|
11599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11600
11709
|
switch (errorCode) {
|
|
11601
11710
|
case "BadRequestException":
|
|
11602
11711
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11615,10 +11724,12 @@ const deserializeAws_restJson1UpdateMethodCommandError = async (output, context)
|
|
|
11615
11724
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11616
11725
|
default:
|
|
11617
11726
|
const parsedBody = parsedOutput.body;
|
|
11727
|
+
const $metadata = deserializeMetadata(output);
|
|
11728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11618
11729
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11620
11731
|
$fault: "client",
|
|
11621
|
-
$metadata
|
|
11732
|
+
$metadata,
|
|
11622
11733
|
});
|
|
11623
11734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11624
11735
|
}
|
|
@@ -11652,8 +11763,7 @@ const deserializeAws_restJson1UpdateMethodResponseCommandError = async (output,
|
|
|
11652
11763
|
body: await parseBody(output.body, context),
|
|
11653
11764
|
};
|
|
11654
11765
|
let response;
|
|
11655
|
-
|
|
11656
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11657
11767
|
switch (errorCode) {
|
|
11658
11768
|
case "BadRequestException":
|
|
11659
11769
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11675,10 +11785,12 @@ const deserializeAws_restJson1UpdateMethodResponseCommandError = async (output,
|
|
|
11675
11785
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11676
11786
|
default:
|
|
11677
11787
|
const parsedBody = parsedOutput.body;
|
|
11788
|
+
const $metadata = deserializeMetadata(output);
|
|
11789
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11678
11790
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11679
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11680
11792
|
$fault: "client",
|
|
11681
|
-
$metadata
|
|
11793
|
+
$metadata,
|
|
11682
11794
|
});
|
|
11683
11795
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11684
11796
|
}
|
|
@@ -11720,8 +11832,7 @@ const deserializeAws_restJson1UpdateModelCommandError = async (output, context)
|
|
|
11720
11832
|
body: await parseBody(output.body, context),
|
|
11721
11833
|
};
|
|
11722
11834
|
let response;
|
|
11723
|
-
|
|
11724
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11835
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11725
11836
|
switch (errorCode) {
|
|
11726
11837
|
case "BadRequestException":
|
|
11727
11838
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11743,10 +11854,12 @@ const deserializeAws_restJson1UpdateModelCommandError = async (output, context)
|
|
|
11743
11854
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11744
11855
|
default:
|
|
11745
11856
|
const parsedBody = parsedOutput.body;
|
|
11857
|
+
const $metadata = deserializeMetadata(output);
|
|
11858
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11746
11859
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11860
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11748
11861
|
$fault: "client",
|
|
11749
|
-
$metadata
|
|
11862
|
+
$metadata,
|
|
11750
11863
|
});
|
|
11751
11864
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11752
11865
|
}
|
|
@@ -11784,8 +11897,7 @@ const deserializeAws_restJson1UpdateRequestValidatorCommandError = async (output
|
|
|
11784
11897
|
body: await parseBody(output.body, context),
|
|
11785
11898
|
};
|
|
11786
11899
|
let response;
|
|
11787
|
-
|
|
11788
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11789
11901
|
switch (errorCode) {
|
|
11790
11902
|
case "BadRequestException":
|
|
11791
11903
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11807,10 +11919,12 @@ const deserializeAws_restJson1UpdateRequestValidatorCommandError = async (output
|
|
|
11807
11919
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11808
11920
|
default:
|
|
11809
11921
|
const parsedBody = parsedOutput.body;
|
|
11922
|
+
const $metadata = deserializeMetadata(output);
|
|
11923
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11810
11924
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11925
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11812
11926
|
$fault: "client",
|
|
11813
|
-
$metadata
|
|
11927
|
+
$metadata,
|
|
11814
11928
|
});
|
|
11815
11929
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11816
11930
|
}
|
|
@@ -11852,8 +11966,7 @@ const deserializeAws_restJson1UpdateResourceCommandError = async (output, contex
|
|
|
11852
11966
|
body: await parseBody(output.body, context),
|
|
11853
11967
|
};
|
|
11854
11968
|
let response;
|
|
11855
|
-
|
|
11856
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11857
11970
|
switch (errorCode) {
|
|
11858
11971
|
case "BadRequestException":
|
|
11859
11972
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11872,10 +11985,12 @@ const deserializeAws_restJson1UpdateResourceCommandError = async (output, contex
|
|
|
11872
11985
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11873
11986
|
default:
|
|
11874
11987
|
const parsedBody = parsedOutput.body;
|
|
11988
|
+
const $metadata = deserializeMetadata(output);
|
|
11989
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11875
11990
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11991
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11877
11992
|
$fault: "client",
|
|
11878
|
-
$metadata
|
|
11993
|
+
$metadata,
|
|
11879
11994
|
});
|
|
11880
11995
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11881
11996
|
}
|
|
@@ -11949,8 +12064,7 @@ const deserializeAws_restJson1UpdateRestApiCommandError = async (output, context
|
|
|
11949
12064
|
body: await parseBody(output.body, context),
|
|
11950
12065
|
};
|
|
11951
12066
|
let response;
|
|
11952
|
-
|
|
11953
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11954
12068
|
switch (errorCode) {
|
|
11955
12069
|
case "BadRequestException":
|
|
11956
12070
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11972,10 +12086,12 @@ const deserializeAws_restJson1UpdateRestApiCommandError = async (output, context
|
|
|
11972
12086
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11973
12087
|
default:
|
|
11974
12088
|
const parsedBody = parsedOutput.body;
|
|
12089
|
+
const $metadata = deserializeMetadata(output);
|
|
12090
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11975
12091
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12092
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11977
12093
|
$fault: "client",
|
|
11978
|
-
$metadata
|
|
12094
|
+
$metadata,
|
|
11979
12095
|
});
|
|
11980
12096
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11981
12097
|
}
|
|
@@ -12065,8 +12181,7 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
|
|
|
12065
12181
|
body: await parseBody(output.body, context),
|
|
12066
12182
|
};
|
|
12067
12183
|
let response;
|
|
12068
|
-
|
|
12069
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12184
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12070
12185
|
switch (errorCode) {
|
|
12071
12186
|
case "BadRequestException":
|
|
12072
12187
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12088,10 +12203,12 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
|
|
|
12088
12203
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12089
12204
|
default:
|
|
12090
12205
|
const parsedBody = parsedOutput.body;
|
|
12206
|
+
const $metadata = deserializeMetadata(output);
|
|
12207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12091
12208
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12092
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12093
12210
|
$fault: "client",
|
|
12094
|
-
$metadata
|
|
12211
|
+
$metadata,
|
|
12095
12212
|
});
|
|
12096
12213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12097
12214
|
}
|
|
@@ -12133,8 +12250,7 @@ const deserializeAws_restJson1UpdateUsageCommandError = async (output, context)
|
|
|
12133
12250
|
body: await parseBody(output.body, context),
|
|
12134
12251
|
};
|
|
12135
12252
|
let response;
|
|
12136
|
-
|
|
12137
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12138
12254
|
switch (errorCode) {
|
|
12139
12255
|
case "BadRequestException":
|
|
12140
12256
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12156,10 +12272,12 @@ const deserializeAws_restJson1UpdateUsageCommandError = async (output, context)
|
|
|
12156
12272
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12157
12273
|
default:
|
|
12158
12274
|
const parsedBody = parsedOutput.body;
|
|
12275
|
+
const $metadata = deserializeMetadata(output);
|
|
12276
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12159
12277
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12160
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12161
12279
|
$fault: "client",
|
|
12162
|
-
$metadata
|
|
12280
|
+
$metadata,
|
|
12163
12281
|
});
|
|
12164
12282
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12165
12283
|
}
|
|
@@ -12213,8 +12331,7 @@ const deserializeAws_restJson1UpdateUsagePlanCommandError = async (output, conte
|
|
|
12213
12331
|
body: await parseBody(output.body, context),
|
|
12214
12332
|
};
|
|
12215
12333
|
let response;
|
|
12216
|
-
|
|
12217
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12334
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12218
12335
|
switch (errorCode) {
|
|
12219
12336
|
case "BadRequestException":
|
|
12220
12337
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12236,10 +12353,12 @@ const deserializeAws_restJson1UpdateUsagePlanCommandError = async (output, conte
|
|
|
12236
12353
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12237
12354
|
default:
|
|
12238
12355
|
const parsedBody = parsedOutput.body;
|
|
12356
|
+
const $metadata = deserializeMetadata(output);
|
|
12357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12239
12358
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12359
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12241
12360
|
$fault: "client",
|
|
12242
|
-
$metadata
|
|
12361
|
+
$metadata,
|
|
12243
12362
|
});
|
|
12244
12363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12245
12364
|
}
|
|
@@ -12289,8 +12408,7 @@ const deserializeAws_restJson1UpdateVpcLinkCommandError = async (output, context
|
|
|
12289
12408
|
body: await parseBody(output.body, context),
|
|
12290
12409
|
};
|
|
12291
12410
|
let response;
|
|
12292
|
-
|
|
12293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12294
12412
|
switch (errorCode) {
|
|
12295
12413
|
case "BadRequestException":
|
|
12296
12414
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12312,10 +12430,12 @@ const deserializeAws_restJson1UpdateVpcLinkCommandError = async (output, context
|
|
|
12312
12430
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12313
12431
|
default:
|
|
12314
12432
|
const parsedBody = parsedOutput.body;
|
|
12433
|
+
const $metadata = deserializeMetadata(output);
|
|
12434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12315
12435
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12317
12437
|
$fault: "client",
|
|
12318
|
-
$metadata
|
|
12438
|
+
$metadata,
|
|
12319
12439
|
});
|
|
12320
12440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12321
12441
|
}
|
|
@@ -13508,5 +13628,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
13508
13628
|
if (data["__type"] !== undefined) {
|
|
13509
13629
|
return sanitizeErrorCode(data["__type"]);
|
|
13510
13630
|
}
|
|
13511
|
-
return "";
|
|
13512
13631
|
};
|