@aws-sdk/client-sesv2 3.112.0 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +405 -325
- package/dist-es/protocols/Aws_restJson1.js +405 -325
- package/package.json +6 -6
|
@@ -2430,8 +2430,7 @@ const deserializeAws_restJson1CreateConfigurationSetCommandError = async (output
|
|
|
2430
2430
|
body: await parseBody(output.body, context),
|
|
2431
2431
|
};
|
|
2432
2432
|
let response;
|
|
2433
|
-
|
|
2434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
2434
|
switch (errorCode) {
|
|
2436
2435
|
case "AlreadyExistsException":
|
|
2437
2436
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2453,10 +2452,12 @@ const deserializeAws_restJson1CreateConfigurationSetCommandError = async (output
|
|
|
2453
2452
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2454
2453
|
default:
|
|
2455
2454
|
const parsedBody = parsedOutput.body;
|
|
2455
|
+
const $metadata = deserializeMetadata(output);
|
|
2456
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2456
2457
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2457
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2458
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2458
2459
|
$fault: "client",
|
|
2459
|
-
$metadata
|
|
2460
|
+
$metadata,
|
|
2460
2461
|
});
|
|
2461
2462
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2462
2463
|
}
|
|
@@ -2478,8 +2479,7 @@ const deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError
|
|
|
2478
2479
|
body: await parseBody(output.body, context),
|
|
2479
2480
|
};
|
|
2480
2481
|
let response;
|
|
2481
|
-
|
|
2482
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2483
2483
|
switch (errorCode) {
|
|
2484
2484
|
case "AlreadyExistsException":
|
|
2485
2485
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2498,10 +2498,12 @@ const deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError
|
|
|
2498
2498
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2499
2499
|
default:
|
|
2500
2500
|
const parsedBody = parsedOutput.body;
|
|
2501
|
+
const $metadata = deserializeMetadata(output);
|
|
2502
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2501
2503
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2502
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2504
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2503
2505
|
$fault: "client",
|
|
2504
|
-
$metadata
|
|
2506
|
+
$metadata,
|
|
2505
2507
|
});
|
|
2506
2508
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2507
2509
|
}
|
|
@@ -2523,8 +2525,7 @@ const deserializeAws_restJson1CreateContactCommandError = async (output, context
|
|
|
2523
2525
|
body: await parseBody(output.body, context),
|
|
2524
2526
|
};
|
|
2525
2527
|
let response;
|
|
2526
|
-
|
|
2527
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
2529
|
switch (errorCode) {
|
|
2529
2530
|
case "AlreadyExistsException":
|
|
2530
2531
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2540,10 +2541,12 @@ const deserializeAws_restJson1CreateContactCommandError = async (output, context
|
|
|
2540
2541
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2541
2542
|
default:
|
|
2542
2543
|
const parsedBody = parsedOutput.body;
|
|
2544
|
+
const $metadata = deserializeMetadata(output);
|
|
2545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2543
2546
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2544
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2545
2548
|
$fault: "client",
|
|
2546
|
-
$metadata
|
|
2549
|
+
$metadata,
|
|
2547
2550
|
});
|
|
2548
2551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2549
2552
|
}
|
|
@@ -2565,8 +2568,7 @@ const deserializeAws_restJson1CreateContactListCommandError = async (output, con
|
|
|
2565
2568
|
body: await parseBody(output.body, context),
|
|
2566
2569
|
};
|
|
2567
2570
|
let response;
|
|
2568
|
-
|
|
2569
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2570
2572
|
switch (errorCode) {
|
|
2571
2573
|
case "AlreadyExistsException":
|
|
2572
2574
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2582,10 +2584,12 @@ const deserializeAws_restJson1CreateContactListCommandError = async (output, con
|
|
|
2582
2584
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2583
2585
|
default:
|
|
2584
2586
|
const parsedBody = parsedOutput.body;
|
|
2587
|
+
const $metadata = deserializeMetadata(output);
|
|
2588
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2585
2589
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2590
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2587
2591
|
$fault: "client",
|
|
2588
|
-
$metadata
|
|
2592
|
+
$metadata,
|
|
2589
2593
|
});
|
|
2590
2594
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2591
2595
|
}
|
|
@@ -2607,8 +2611,7 @@ const deserializeAws_restJson1CreateCustomVerificationEmailTemplateCommandError
|
|
|
2607
2611
|
body: await parseBody(output.body, context),
|
|
2608
2612
|
};
|
|
2609
2613
|
let response;
|
|
2610
|
-
|
|
2611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2614
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
2615
|
switch (errorCode) {
|
|
2613
2616
|
case "AlreadyExistsException":
|
|
2614
2617
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2627,10 +2630,12 @@ const deserializeAws_restJson1CreateCustomVerificationEmailTemplateCommandError
|
|
|
2627
2630
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2628
2631
|
default:
|
|
2629
2632
|
const parsedBody = parsedOutput.body;
|
|
2633
|
+
const $metadata = deserializeMetadata(output);
|
|
2634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2630
2635
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2631
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2632
2637
|
$fault: "client",
|
|
2633
|
-
$metadata
|
|
2638
|
+
$metadata,
|
|
2634
2639
|
});
|
|
2635
2640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2636
2641
|
}
|
|
@@ -2652,8 +2657,7 @@ const deserializeAws_restJson1CreateDedicatedIpPoolCommandError = async (output,
|
|
|
2652
2657
|
body: await parseBody(output.body, context),
|
|
2653
2658
|
};
|
|
2654
2659
|
let response;
|
|
2655
|
-
|
|
2656
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2660
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2657
2661
|
switch (errorCode) {
|
|
2658
2662
|
case "AlreadyExistsException":
|
|
2659
2663
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2672,10 +2676,12 @@ const deserializeAws_restJson1CreateDedicatedIpPoolCommandError = async (output,
|
|
|
2672
2676
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2673
2677
|
default:
|
|
2674
2678
|
const parsedBody = parsedOutput.body;
|
|
2679
|
+
const $metadata = deserializeMetadata(output);
|
|
2680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2675
2681
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2676
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2677
2683
|
$fault: "client",
|
|
2678
|
-
$metadata
|
|
2684
|
+
$metadata,
|
|
2679
2685
|
});
|
|
2680
2686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2681
2687
|
}
|
|
@@ -2705,8 +2711,7 @@ const deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = async
|
|
|
2705
2711
|
body: await parseBody(output.body, context),
|
|
2706
2712
|
};
|
|
2707
2713
|
let response;
|
|
2708
|
-
|
|
2709
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2710
2715
|
switch (errorCode) {
|
|
2711
2716
|
case "AccountSuspendedException":
|
|
2712
2717
|
case "com.amazonaws.sesv2#AccountSuspendedException":
|
|
@@ -2737,10 +2742,12 @@ const deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = async
|
|
|
2737
2742
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2738
2743
|
default:
|
|
2739
2744
|
const parsedBody = parsedOutput.body;
|
|
2745
|
+
const $metadata = deserializeMetadata(output);
|
|
2746
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2740
2747
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2741
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2748
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2742
2749
|
$fault: "client",
|
|
2743
|
-
$metadata
|
|
2750
|
+
$metadata,
|
|
2744
2751
|
});
|
|
2745
2752
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2746
2753
|
}
|
|
@@ -2774,8 +2781,7 @@ const deserializeAws_restJson1CreateEmailIdentityCommandError = async (output, c
|
|
|
2774
2781
|
body: await parseBody(output.body, context),
|
|
2775
2782
|
};
|
|
2776
2783
|
let response;
|
|
2777
|
-
|
|
2778
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2784
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
2785
|
switch (errorCode) {
|
|
2780
2786
|
case "AlreadyExistsException":
|
|
2781
2787
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2797,10 +2803,12 @@ const deserializeAws_restJson1CreateEmailIdentityCommandError = async (output, c
|
|
|
2797
2803
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2798
2804
|
default:
|
|
2799
2805
|
const parsedBody = parsedOutput.body;
|
|
2806
|
+
const $metadata = deserializeMetadata(output);
|
|
2807
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2800
2808
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2801
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2809
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2802
2810
|
$fault: "client",
|
|
2803
|
-
$metadata
|
|
2811
|
+
$metadata,
|
|
2804
2812
|
});
|
|
2805
2813
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2806
2814
|
}
|
|
@@ -2822,8 +2830,7 @@ const deserializeAws_restJson1CreateEmailIdentityPolicyCommandError = async (out
|
|
|
2822
2830
|
body: await parseBody(output.body, context),
|
|
2823
2831
|
};
|
|
2824
2832
|
let response;
|
|
2825
|
-
|
|
2826
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
2834
|
switch (errorCode) {
|
|
2828
2835
|
case "AlreadyExistsException":
|
|
2829
2836
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2842,10 +2849,12 @@ const deserializeAws_restJson1CreateEmailIdentityPolicyCommandError = async (out
|
|
|
2842
2849
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2843
2850
|
default:
|
|
2844
2851
|
const parsedBody = parsedOutput.body;
|
|
2852
|
+
const $metadata = deserializeMetadata(output);
|
|
2853
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2845
2854
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2846
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2855
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2847
2856
|
$fault: "client",
|
|
2848
|
-
$metadata
|
|
2857
|
+
$metadata,
|
|
2849
2858
|
});
|
|
2850
2859
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2851
2860
|
}
|
|
@@ -2867,8 +2876,7 @@ const deserializeAws_restJson1CreateEmailTemplateCommandError = async (output, c
|
|
|
2867
2876
|
body: await parseBody(output.body, context),
|
|
2868
2877
|
};
|
|
2869
2878
|
let response;
|
|
2870
|
-
|
|
2871
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2879
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2872
2880
|
switch (errorCode) {
|
|
2873
2881
|
case "AlreadyExistsException":
|
|
2874
2882
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -2884,10 +2892,12 @@ const deserializeAws_restJson1CreateEmailTemplateCommandError = async (output, c
|
|
|
2884
2892
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2885
2893
|
default:
|
|
2886
2894
|
const parsedBody = parsedOutput.body;
|
|
2895
|
+
const $metadata = deserializeMetadata(output);
|
|
2896
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2887
2897
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2889
2899
|
$fault: "client",
|
|
2890
|
-
$metadata
|
|
2900
|
+
$metadata,
|
|
2891
2901
|
});
|
|
2892
2902
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2893
2903
|
}
|
|
@@ -2913,8 +2923,7 @@ const deserializeAws_restJson1CreateImportJobCommandError = async (output, conte
|
|
|
2913
2923
|
body: await parseBody(output.body, context),
|
|
2914
2924
|
};
|
|
2915
2925
|
let response;
|
|
2916
|
-
|
|
2917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2926
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
2927
|
switch (errorCode) {
|
|
2919
2928
|
case "BadRequestException":
|
|
2920
2929
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -2927,10 +2936,12 @@ const deserializeAws_restJson1CreateImportJobCommandError = async (output, conte
|
|
|
2927
2936
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2928
2937
|
default:
|
|
2929
2938
|
const parsedBody = parsedOutput.body;
|
|
2939
|
+
const $metadata = deserializeMetadata(output);
|
|
2940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2930
2941
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2932
2943
|
$fault: "client",
|
|
2933
|
-
$metadata
|
|
2944
|
+
$metadata,
|
|
2934
2945
|
});
|
|
2935
2946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2936
2947
|
}
|
|
@@ -2952,8 +2963,7 @@ const deserializeAws_restJson1DeleteConfigurationSetCommandError = async (output
|
|
|
2952
2963
|
body: await parseBody(output.body, context),
|
|
2953
2964
|
};
|
|
2954
2965
|
let response;
|
|
2955
|
-
|
|
2956
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2967
|
switch (errorCode) {
|
|
2958
2968
|
case "BadRequestException":
|
|
2959
2969
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -2969,10 +2979,12 @@ const deserializeAws_restJson1DeleteConfigurationSetCommandError = async (output
|
|
|
2969
2979
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2970
2980
|
default:
|
|
2971
2981
|
const parsedBody = parsedOutput.body;
|
|
2982
|
+
const $metadata = deserializeMetadata(output);
|
|
2983
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2972
2984
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
2973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2985
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2974
2986
|
$fault: "client",
|
|
2975
|
-
$metadata
|
|
2987
|
+
$metadata,
|
|
2976
2988
|
});
|
|
2977
2989
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2978
2990
|
}
|
|
@@ -2994,8 +3006,7 @@ const deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError
|
|
|
2994
3006
|
body: await parseBody(output.body, context),
|
|
2995
3007
|
};
|
|
2996
3008
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
3010
|
switch (errorCode) {
|
|
3000
3011
|
case "BadRequestException":
|
|
3001
3012
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3008,10 +3019,12 @@ const deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError
|
|
|
3008
3019
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3009
3020
|
default:
|
|
3010
3021
|
const parsedBody = parsedOutput.body;
|
|
3022
|
+
const $metadata = deserializeMetadata(output);
|
|
3023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3011
3024
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3012
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3013
3026
|
$fault: "client",
|
|
3014
|
-
$metadata
|
|
3027
|
+
$metadata,
|
|
3015
3028
|
});
|
|
3016
3029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3017
3030
|
}
|
|
@@ -3033,8 +3046,7 @@ const deserializeAws_restJson1DeleteContactCommandError = async (output, context
|
|
|
3033
3046
|
body: await parseBody(output.body, context),
|
|
3034
3047
|
};
|
|
3035
3048
|
let response;
|
|
3036
|
-
|
|
3037
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
3050
|
switch (errorCode) {
|
|
3039
3051
|
case "BadRequestException":
|
|
3040
3052
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3047,10 +3059,12 @@ const deserializeAws_restJson1DeleteContactCommandError = async (output, context
|
|
|
3047
3059
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3048
3060
|
default:
|
|
3049
3061
|
const parsedBody = parsedOutput.body;
|
|
3062
|
+
const $metadata = deserializeMetadata(output);
|
|
3063
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3050
3064
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3051
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3065
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3052
3066
|
$fault: "client",
|
|
3053
|
-
$metadata
|
|
3067
|
+
$metadata,
|
|
3054
3068
|
});
|
|
3055
3069
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3056
3070
|
}
|
|
@@ -3072,8 +3086,7 @@ const deserializeAws_restJson1DeleteContactListCommandError = async (output, con
|
|
|
3072
3086
|
body: await parseBody(output.body, context),
|
|
3073
3087
|
};
|
|
3074
3088
|
let response;
|
|
3075
|
-
|
|
3076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3077
3090
|
switch (errorCode) {
|
|
3078
3091
|
case "BadRequestException":
|
|
3079
3092
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3089,10 +3102,12 @@ const deserializeAws_restJson1DeleteContactListCommandError = async (output, con
|
|
|
3089
3102
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3090
3103
|
default:
|
|
3091
3104
|
const parsedBody = parsedOutput.body;
|
|
3105
|
+
const $metadata = deserializeMetadata(output);
|
|
3106
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3092
3107
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3093
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3094
3109
|
$fault: "client",
|
|
3095
|
-
$metadata
|
|
3110
|
+
$metadata,
|
|
3096
3111
|
});
|
|
3097
3112
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3098
3113
|
}
|
|
@@ -3114,8 +3129,7 @@ const deserializeAws_restJson1DeleteCustomVerificationEmailTemplateCommandError
|
|
|
3114
3129
|
body: await parseBody(output.body, context),
|
|
3115
3130
|
};
|
|
3116
3131
|
let response;
|
|
3117
|
-
|
|
3118
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3119
3133
|
switch (errorCode) {
|
|
3120
3134
|
case "BadRequestException":
|
|
3121
3135
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3128,10 +3142,12 @@ const deserializeAws_restJson1DeleteCustomVerificationEmailTemplateCommandError
|
|
|
3128
3142
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3129
3143
|
default:
|
|
3130
3144
|
const parsedBody = parsedOutput.body;
|
|
3145
|
+
const $metadata = deserializeMetadata(output);
|
|
3146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3131
3147
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3132
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3133
3149
|
$fault: "client",
|
|
3134
|
-
$metadata
|
|
3150
|
+
$metadata,
|
|
3135
3151
|
});
|
|
3136
3152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3137
3153
|
}
|
|
@@ -3153,8 +3169,7 @@ const deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = async (output,
|
|
|
3153
3169
|
body: await parseBody(output.body, context),
|
|
3154
3170
|
};
|
|
3155
3171
|
let response;
|
|
3156
|
-
|
|
3157
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3158
3173
|
switch (errorCode) {
|
|
3159
3174
|
case "BadRequestException":
|
|
3160
3175
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3170,10 +3185,12 @@ const deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = async (output,
|
|
|
3170
3185
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3171
3186
|
default:
|
|
3172
3187
|
const parsedBody = parsedOutput.body;
|
|
3188
|
+
const $metadata = deserializeMetadata(output);
|
|
3189
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3173
3190
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3174
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3191
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3175
3192
|
$fault: "client",
|
|
3176
|
-
$metadata
|
|
3193
|
+
$metadata,
|
|
3177
3194
|
});
|
|
3178
3195
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3179
3196
|
}
|
|
@@ -3195,8 +3212,7 @@ const deserializeAws_restJson1DeleteEmailIdentityCommandError = async (output, c
|
|
|
3195
3212
|
body: await parseBody(output.body, context),
|
|
3196
3213
|
};
|
|
3197
3214
|
let response;
|
|
3198
|
-
|
|
3199
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3200
3216
|
switch (errorCode) {
|
|
3201
3217
|
case "BadRequestException":
|
|
3202
3218
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3212,10 +3228,12 @@ const deserializeAws_restJson1DeleteEmailIdentityCommandError = async (output, c
|
|
|
3212
3228
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3213
3229
|
default:
|
|
3214
3230
|
const parsedBody = parsedOutput.body;
|
|
3231
|
+
const $metadata = deserializeMetadata(output);
|
|
3232
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3215
3233
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3216
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3234
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3217
3235
|
$fault: "client",
|
|
3218
|
-
$metadata
|
|
3236
|
+
$metadata,
|
|
3219
3237
|
});
|
|
3220
3238
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3221
3239
|
}
|
|
@@ -3237,8 +3255,7 @@ const deserializeAws_restJson1DeleteEmailIdentityPolicyCommandError = async (out
|
|
|
3237
3255
|
body: await parseBody(output.body, context),
|
|
3238
3256
|
};
|
|
3239
3257
|
let response;
|
|
3240
|
-
|
|
3241
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3242
3259
|
switch (errorCode) {
|
|
3243
3260
|
case "BadRequestException":
|
|
3244
3261
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3251,10 +3268,12 @@ const deserializeAws_restJson1DeleteEmailIdentityPolicyCommandError = async (out
|
|
|
3251
3268
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3252
3269
|
default:
|
|
3253
3270
|
const parsedBody = parsedOutput.body;
|
|
3271
|
+
const $metadata = deserializeMetadata(output);
|
|
3272
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3254
3273
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3274
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3256
3275
|
$fault: "client",
|
|
3257
|
-
$metadata
|
|
3276
|
+
$metadata,
|
|
3258
3277
|
});
|
|
3259
3278
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3260
3279
|
}
|
|
@@ -3276,8 +3295,7 @@ const deserializeAws_restJson1DeleteEmailTemplateCommandError = async (output, c
|
|
|
3276
3295
|
body: await parseBody(output.body, context),
|
|
3277
3296
|
};
|
|
3278
3297
|
let response;
|
|
3279
|
-
|
|
3280
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3281
3299
|
switch (errorCode) {
|
|
3282
3300
|
case "BadRequestException":
|
|
3283
3301
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3290,10 +3308,12 @@ const deserializeAws_restJson1DeleteEmailTemplateCommandError = async (output, c
|
|
|
3290
3308
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3291
3309
|
default:
|
|
3292
3310
|
const parsedBody = parsedOutput.body;
|
|
3311
|
+
const $metadata = deserializeMetadata(output);
|
|
3312
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3293
3313
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3314
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3295
3315
|
$fault: "client",
|
|
3296
|
-
$metadata
|
|
3316
|
+
$metadata,
|
|
3297
3317
|
});
|
|
3298
3318
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3299
3319
|
}
|
|
@@ -3315,8 +3335,7 @@ const deserializeAws_restJson1DeleteSuppressedDestinationCommandError = async (o
|
|
|
3315
3335
|
body: await parseBody(output.body, context),
|
|
3316
3336
|
};
|
|
3317
3337
|
let response;
|
|
3318
|
-
|
|
3319
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3320
3339
|
switch (errorCode) {
|
|
3321
3340
|
case "BadRequestException":
|
|
3322
3341
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3329,10 +3348,12 @@ const deserializeAws_restJson1DeleteSuppressedDestinationCommandError = async (o
|
|
|
3329
3348
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3330
3349
|
default:
|
|
3331
3350
|
const parsedBody = parsedOutput.body;
|
|
3351
|
+
const $metadata = deserializeMetadata(output);
|
|
3352
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3332
3353
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3333
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3334
3355
|
$fault: "client",
|
|
3335
|
-
$metadata
|
|
3356
|
+
$metadata,
|
|
3336
3357
|
});
|
|
3337
3358
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3338
3359
|
}
|
|
@@ -3382,8 +3403,7 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
3382
3403
|
body: await parseBody(output.body, context),
|
|
3383
3404
|
};
|
|
3384
3405
|
let response;
|
|
3385
|
-
|
|
3386
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3406
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3387
3407
|
switch (errorCode) {
|
|
3388
3408
|
case "BadRequestException":
|
|
3389
3409
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3393,10 +3413,12 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
3393
3413
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3394
3414
|
default:
|
|
3395
3415
|
const parsedBody = parsedOutput.body;
|
|
3416
|
+
const $metadata = deserializeMetadata(output);
|
|
3417
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3396
3418
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3419
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3398
3420
|
$fault: "client",
|
|
3399
|
-
$metadata
|
|
3421
|
+
$metadata,
|
|
3400
3422
|
});
|
|
3401
3423
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3402
3424
|
}
|
|
@@ -3422,8 +3444,7 @@ const deserializeAws_restJson1GetBlacklistReportsCommandError = async (output, c
|
|
|
3422
3444
|
body: await parseBody(output.body, context),
|
|
3423
3445
|
};
|
|
3424
3446
|
let response;
|
|
3425
|
-
|
|
3426
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3427
3448
|
switch (errorCode) {
|
|
3428
3449
|
case "BadRequestException":
|
|
3429
3450
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3436,10 +3457,12 @@ const deserializeAws_restJson1GetBlacklistReportsCommandError = async (output, c
|
|
|
3436
3457
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3437
3458
|
default:
|
|
3438
3459
|
const parsedBody = parsedOutput.body;
|
|
3460
|
+
const $metadata = deserializeMetadata(output);
|
|
3461
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3439
3462
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3463
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3441
3464
|
$fault: "client",
|
|
3442
|
-
$metadata
|
|
3465
|
+
$metadata,
|
|
3443
3466
|
});
|
|
3444
3467
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3445
3468
|
}
|
|
@@ -3489,8 +3512,7 @@ const deserializeAws_restJson1GetConfigurationSetCommandError = async (output, c
|
|
|
3489
3512
|
body: await parseBody(output.body, context),
|
|
3490
3513
|
};
|
|
3491
3514
|
let response;
|
|
3492
|
-
|
|
3493
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3494
3516
|
switch (errorCode) {
|
|
3495
3517
|
case "BadRequestException":
|
|
3496
3518
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3503,10 +3525,12 @@ const deserializeAws_restJson1GetConfigurationSetCommandError = async (output, c
|
|
|
3503
3525
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3504
3526
|
default:
|
|
3505
3527
|
const parsedBody = parsedOutput.body;
|
|
3528
|
+
const $metadata = deserializeMetadata(output);
|
|
3529
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3506
3530
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3508
3532
|
$fault: "client",
|
|
3509
|
-
$metadata
|
|
3533
|
+
$metadata,
|
|
3510
3534
|
});
|
|
3511
3535
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3512
3536
|
}
|
|
@@ -3532,8 +3556,7 @@ const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError =
|
|
|
3532
3556
|
body: await parseBody(output.body, context),
|
|
3533
3557
|
};
|
|
3534
3558
|
let response;
|
|
3535
|
-
|
|
3536
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3559
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3537
3560
|
switch (errorCode) {
|
|
3538
3561
|
case "BadRequestException":
|
|
3539
3562
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3546,10 +3569,12 @@ const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError =
|
|
|
3546
3569
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3547
3570
|
default:
|
|
3548
3571
|
const parsedBody = parsedOutput.body;
|
|
3572
|
+
const $metadata = deserializeMetadata(output);
|
|
3573
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3549
3574
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3575
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3551
3576
|
$fault: "client",
|
|
3552
|
-
$metadata
|
|
3577
|
+
$metadata,
|
|
3553
3578
|
});
|
|
3554
3579
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3555
3580
|
}
|
|
@@ -3603,8 +3628,7 @@ const deserializeAws_restJson1GetContactCommandError = async (output, context) =
|
|
|
3603
3628
|
body: await parseBody(output.body, context),
|
|
3604
3629
|
};
|
|
3605
3630
|
let response;
|
|
3606
|
-
|
|
3607
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3608
3632
|
switch (errorCode) {
|
|
3609
3633
|
case "BadRequestException":
|
|
3610
3634
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3617,10 +3641,12 @@ const deserializeAws_restJson1GetContactCommandError = async (output, context) =
|
|
|
3617
3641
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3618
3642
|
default:
|
|
3619
3643
|
const parsedBody = parsedOutput.body;
|
|
3644
|
+
const $metadata = deserializeMetadata(output);
|
|
3645
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3620
3646
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3647
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3622
3648
|
$fault: "client",
|
|
3623
|
-
$metadata
|
|
3649
|
+
$metadata,
|
|
3624
3650
|
});
|
|
3625
3651
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3626
3652
|
}
|
|
@@ -3666,8 +3692,7 @@ const deserializeAws_restJson1GetContactListCommandError = async (output, contex
|
|
|
3666
3692
|
body: await parseBody(output.body, context),
|
|
3667
3693
|
};
|
|
3668
3694
|
let response;
|
|
3669
|
-
|
|
3670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3671
3696
|
switch (errorCode) {
|
|
3672
3697
|
case "BadRequestException":
|
|
3673
3698
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3680,10 +3705,12 @@ const deserializeAws_restJson1GetContactListCommandError = async (output, contex
|
|
|
3680
3705
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3681
3706
|
default:
|
|
3682
3707
|
const parsedBody = parsedOutput.body;
|
|
3708
|
+
const $metadata = deserializeMetadata(output);
|
|
3709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3683
3710
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3711
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3685
3712
|
$fault: "client",
|
|
3686
|
-
$metadata
|
|
3713
|
+
$metadata,
|
|
3687
3714
|
});
|
|
3688
3715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3689
3716
|
}
|
|
@@ -3729,8 +3756,7 @@ const deserializeAws_restJson1GetCustomVerificationEmailTemplateCommandError = a
|
|
|
3729
3756
|
body: await parseBody(output.body, context),
|
|
3730
3757
|
};
|
|
3731
3758
|
let response;
|
|
3732
|
-
|
|
3733
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3734
3760
|
switch (errorCode) {
|
|
3735
3761
|
case "BadRequestException":
|
|
3736
3762
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3743,10 +3769,12 @@ const deserializeAws_restJson1GetCustomVerificationEmailTemplateCommandError = a
|
|
|
3743
3769
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3744
3770
|
default:
|
|
3745
3771
|
const parsedBody = parsedOutput.body;
|
|
3772
|
+
const $metadata = deserializeMetadata(output);
|
|
3773
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3746
3774
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3775
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3748
3776
|
$fault: "client",
|
|
3749
|
-
$metadata
|
|
3777
|
+
$metadata,
|
|
3750
3778
|
});
|
|
3751
3779
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3752
3780
|
}
|
|
@@ -3772,8 +3800,7 @@ const deserializeAws_restJson1GetDedicatedIpCommandError = async (output, contex
|
|
|
3772
3800
|
body: await parseBody(output.body, context),
|
|
3773
3801
|
};
|
|
3774
3802
|
let response;
|
|
3775
|
-
|
|
3776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3803
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3777
3804
|
switch (errorCode) {
|
|
3778
3805
|
case "BadRequestException":
|
|
3779
3806
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3786,10 +3813,12 @@ const deserializeAws_restJson1GetDedicatedIpCommandError = async (output, contex
|
|
|
3786
3813
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3787
3814
|
default:
|
|
3788
3815
|
const parsedBody = parsedOutput.body;
|
|
3816
|
+
const $metadata = deserializeMetadata(output);
|
|
3817
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3789
3818
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3790
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3819
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3791
3820
|
$fault: "client",
|
|
3792
|
-
$metadata
|
|
3821
|
+
$metadata,
|
|
3793
3822
|
});
|
|
3794
3823
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3795
3824
|
}
|
|
@@ -3819,8 +3848,7 @@ const deserializeAws_restJson1GetDedicatedIpsCommandError = async (output, conte
|
|
|
3819
3848
|
body: await parseBody(output.body, context),
|
|
3820
3849
|
};
|
|
3821
3850
|
let response;
|
|
3822
|
-
|
|
3823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3824
3852
|
switch (errorCode) {
|
|
3825
3853
|
case "BadRequestException":
|
|
3826
3854
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3833,10 +3861,12 @@ const deserializeAws_restJson1GetDedicatedIpsCommandError = async (output, conte
|
|
|
3833
3861
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3834
3862
|
default:
|
|
3835
3863
|
const parsedBody = parsedOutput.body;
|
|
3864
|
+
const $metadata = deserializeMetadata(output);
|
|
3865
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3836
3866
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3837
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3867
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3838
3868
|
$fault: "client",
|
|
3839
|
-
$metadata
|
|
3869
|
+
$metadata,
|
|
3840
3870
|
});
|
|
3841
3871
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3842
3872
|
}
|
|
@@ -3878,8 +3908,7 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = as
|
|
|
3878
3908
|
body: await parseBody(output.body, context),
|
|
3879
3909
|
};
|
|
3880
3910
|
let response;
|
|
3881
|
-
|
|
3882
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3883
3912
|
switch (errorCode) {
|
|
3884
3913
|
case "BadRequestException":
|
|
3885
3914
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3892,10 +3921,12 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = as
|
|
|
3892
3921
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3893
3922
|
default:
|
|
3894
3923
|
const parsedBody = parsedOutput.body;
|
|
3924
|
+
const $metadata = deserializeMetadata(output);
|
|
3925
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3895
3926
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3897
3928
|
$fault: "client",
|
|
3898
|
-
$metadata
|
|
3929
|
+
$metadata,
|
|
3899
3930
|
});
|
|
3900
3931
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3901
3932
|
}
|
|
@@ -3937,8 +3968,7 @@ const deserializeAws_restJson1GetDeliverabilityTestReportCommandError = async (o
|
|
|
3937
3968
|
body: await parseBody(output.body, context),
|
|
3938
3969
|
};
|
|
3939
3970
|
let response;
|
|
3940
|
-
|
|
3941
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3942
3972
|
switch (errorCode) {
|
|
3943
3973
|
case "BadRequestException":
|
|
3944
3974
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3951,10 +3981,12 @@ const deserializeAws_restJson1GetDeliverabilityTestReportCommandError = async (o
|
|
|
3951
3981
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3952
3982
|
default:
|
|
3953
3983
|
const parsedBody = parsedOutput.body;
|
|
3984
|
+
const $metadata = deserializeMetadata(output);
|
|
3985
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3954
3986
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3955
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3987
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3956
3988
|
$fault: "client",
|
|
3957
|
-
$metadata
|
|
3989
|
+
$metadata,
|
|
3958
3990
|
});
|
|
3959
3991
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3960
3992
|
}
|
|
@@ -3980,8 +4012,7 @@ const deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = asyn
|
|
|
3980
4012
|
body: await parseBody(output.body, context),
|
|
3981
4013
|
};
|
|
3982
4014
|
let response;
|
|
3983
|
-
|
|
3984
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3985
4016
|
switch (errorCode) {
|
|
3986
4017
|
case "BadRequestException":
|
|
3987
4018
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -3994,10 +4025,12 @@ const deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = asyn
|
|
|
3994
4025
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3995
4026
|
default:
|
|
3996
4027
|
const parsedBody = parsedOutput.body;
|
|
4028
|
+
const $metadata = deserializeMetadata(output);
|
|
4029
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3997
4030
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
3998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3999
4032
|
$fault: "client",
|
|
4000
|
-
$metadata
|
|
4033
|
+
$metadata,
|
|
4001
4034
|
});
|
|
4002
4035
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4003
4036
|
}
|
|
@@ -4027,8 +4060,7 @@ const deserializeAws_restJson1GetDomainStatisticsReportCommandError = async (out
|
|
|
4027
4060
|
body: await parseBody(output.body, context),
|
|
4028
4061
|
};
|
|
4029
4062
|
let response;
|
|
4030
|
-
|
|
4031
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4063
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4032
4064
|
switch (errorCode) {
|
|
4033
4065
|
case "BadRequestException":
|
|
4034
4066
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4041,10 +4073,12 @@ const deserializeAws_restJson1GetDomainStatisticsReportCommandError = async (out
|
|
|
4041
4073
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4042
4074
|
default:
|
|
4043
4075
|
const parsedBody = parsedOutput.body;
|
|
4076
|
+
const $metadata = deserializeMetadata(output);
|
|
4077
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4044
4078
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4045
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4046
4080
|
$fault: "client",
|
|
4047
|
-
$metadata
|
|
4081
|
+
$metadata,
|
|
4048
4082
|
});
|
|
4049
4083
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4050
4084
|
}
|
|
@@ -4098,8 +4132,7 @@ const deserializeAws_restJson1GetEmailIdentityCommandError = async (output, cont
|
|
|
4098
4132
|
body: await parseBody(output.body, context),
|
|
4099
4133
|
};
|
|
4100
4134
|
let response;
|
|
4101
|
-
|
|
4102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4103
4136
|
switch (errorCode) {
|
|
4104
4137
|
case "BadRequestException":
|
|
4105
4138
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4112,10 +4145,12 @@ const deserializeAws_restJson1GetEmailIdentityCommandError = async (output, cont
|
|
|
4112
4145
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4113
4146
|
default:
|
|
4114
4147
|
const parsedBody = parsedOutput.body;
|
|
4148
|
+
const $metadata = deserializeMetadata(output);
|
|
4149
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4115
4150
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4116
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4117
4152
|
$fault: "client",
|
|
4118
|
-
$metadata
|
|
4153
|
+
$metadata,
|
|
4119
4154
|
});
|
|
4120
4155
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4121
4156
|
}
|
|
@@ -4141,8 +4176,7 @@ const deserializeAws_restJson1GetEmailIdentityPoliciesCommandError = async (outp
|
|
|
4141
4176
|
body: await parseBody(output.body, context),
|
|
4142
4177
|
};
|
|
4143
4178
|
let response;
|
|
4144
|
-
|
|
4145
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4146
4180
|
switch (errorCode) {
|
|
4147
4181
|
case "BadRequestException":
|
|
4148
4182
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4155,10 +4189,12 @@ const deserializeAws_restJson1GetEmailIdentityPoliciesCommandError = async (outp
|
|
|
4155
4189
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4156
4190
|
default:
|
|
4157
4191
|
const parsedBody = parsedOutput.body;
|
|
4192
|
+
const $metadata = deserializeMetadata(output);
|
|
4193
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4158
4194
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4195
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4160
4196
|
$fault: "client",
|
|
4161
|
-
$metadata
|
|
4197
|
+
$metadata,
|
|
4162
4198
|
});
|
|
4163
4199
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4164
4200
|
}
|
|
@@ -4188,8 +4224,7 @@ const deserializeAws_restJson1GetEmailTemplateCommandError = async (output, cont
|
|
|
4188
4224
|
body: await parseBody(output.body, context),
|
|
4189
4225
|
};
|
|
4190
4226
|
let response;
|
|
4191
|
-
|
|
4192
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4227
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4193
4228
|
switch (errorCode) {
|
|
4194
4229
|
case "BadRequestException":
|
|
4195
4230
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4202,10 +4237,12 @@ const deserializeAws_restJson1GetEmailTemplateCommandError = async (output, cont
|
|
|
4202
4237
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4203
4238
|
default:
|
|
4204
4239
|
const parsedBody = parsedOutput.body;
|
|
4240
|
+
const $metadata = deserializeMetadata(output);
|
|
4241
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4205
4242
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4243
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4207
4244
|
$fault: "client",
|
|
4208
|
-
$metadata
|
|
4245
|
+
$metadata,
|
|
4209
4246
|
});
|
|
4210
4247
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4211
4248
|
}
|
|
@@ -4263,8 +4300,7 @@ const deserializeAws_restJson1GetImportJobCommandError = async (output, context)
|
|
|
4263
4300
|
body: await parseBody(output.body, context),
|
|
4264
4301
|
};
|
|
4265
4302
|
let response;
|
|
4266
|
-
|
|
4267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4268
4304
|
switch (errorCode) {
|
|
4269
4305
|
case "BadRequestException":
|
|
4270
4306
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4277,10 +4313,12 @@ const deserializeAws_restJson1GetImportJobCommandError = async (output, context)
|
|
|
4277
4313
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4278
4314
|
default:
|
|
4279
4315
|
const parsedBody = parsedOutput.body;
|
|
4316
|
+
const $metadata = deserializeMetadata(output);
|
|
4317
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4280
4318
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4281
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4282
4320
|
$fault: "client",
|
|
4283
|
-
$metadata
|
|
4321
|
+
$metadata,
|
|
4284
4322
|
});
|
|
4285
4323
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4286
4324
|
}
|
|
@@ -4306,8 +4344,7 @@ const deserializeAws_restJson1GetSuppressedDestinationCommandError = async (outp
|
|
|
4306
4344
|
body: await parseBody(output.body, context),
|
|
4307
4345
|
};
|
|
4308
4346
|
let response;
|
|
4309
|
-
|
|
4310
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4347
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4311
4348
|
switch (errorCode) {
|
|
4312
4349
|
case "BadRequestException":
|
|
4313
4350
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4320,10 +4357,12 @@ const deserializeAws_restJson1GetSuppressedDestinationCommandError = async (outp
|
|
|
4320
4357
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4321
4358
|
default:
|
|
4322
4359
|
const parsedBody = parsedOutput.body;
|
|
4360
|
+
const $metadata = deserializeMetadata(output);
|
|
4361
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4323
4362
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4324
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4363
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4325
4364
|
$fault: "client",
|
|
4326
|
-
$metadata
|
|
4365
|
+
$metadata,
|
|
4327
4366
|
});
|
|
4328
4367
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4329
4368
|
}
|
|
@@ -4353,8 +4392,7 @@ const deserializeAws_restJson1ListConfigurationSetsCommandError = async (output,
|
|
|
4353
4392
|
body: await parseBody(output.body, context),
|
|
4354
4393
|
};
|
|
4355
4394
|
let response;
|
|
4356
|
-
|
|
4357
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4358
4396
|
switch (errorCode) {
|
|
4359
4397
|
case "BadRequestException":
|
|
4360
4398
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4364,10 +4402,12 @@ const deserializeAws_restJson1ListConfigurationSetsCommandError = async (output,
|
|
|
4364
4402
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4365
4403
|
default:
|
|
4366
4404
|
const parsedBody = parsedOutput.body;
|
|
4405
|
+
const $metadata = deserializeMetadata(output);
|
|
4406
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4367
4407
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4408
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4369
4409
|
$fault: "client",
|
|
4370
|
-
$metadata
|
|
4410
|
+
$metadata,
|
|
4371
4411
|
});
|
|
4372
4412
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4373
4413
|
}
|
|
@@ -4397,8 +4437,7 @@ const deserializeAws_restJson1ListContactListsCommandError = async (output, cont
|
|
|
4397
4437
|
body: await parseBody(output.body, context),
|
|
4398
4438
|
};
|
|
4399
4439
|
let response;
|
|
4400
|
-
|
|
4401
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4402
4441
|
switch (errorCode) {
|
|
4403
4442
|
case "BadRequestException":
|
|
4404
4443
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4408,10 +4447,12 @@ const deserializeAws_restJson1ListContactListsCommandError = async (output, cont
|
|
|
4408
4447
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4409
4448
|
default:
|
|
4410
4449
|
const parsedBody = parsedOutput.body;
|
|
4450
|
+
const $metadata = deserializeMetadata(output);
|
|
4451
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4411
4452
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4453
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4413
4454
|
$fault: "client",
|
|
4414
|
-
$metadata
|
|
4455
|
+
$metadata,
|
|
4415
4456
|
});
|
|
4416
4457
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4417
4458
|
}
|
|
@@ -4441,8 +4482,7 @@ const deserializeAws_restJson1ListContactsCommandError = async (output, context)
|
|
|
4441
4482
|
body: await parseBody(output.body, context),
|
|
4442
4483
|
};
|
|
4443
4484
|
let response;
|
|
4444
|
-
|
|
4445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4446
4486
|
switch (errorCode) {
|
|
4447
4487
|
case "BadRequestException":
|
|
4448
4488
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4455,10 +4495,12 @@ const deserializeAws_restJson1ListContactsCommandError = async (output, context)
|
|
|
4455
4495
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4456
4496
|
default:
|
|
4457
4497
|
const parsedBody = parsedOutput.body;
|
|
4498
|
+
const $metadata = deserializeMetadata(output);
|
|
4499
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4458
4500
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4501
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4460
4502
|
$fault: "client",
|
|
4461
|
-
$metadata
|
|
4503
|
+
$metadata,
|
|
4462
4504
|
});
|
|
4463
4505
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4464
4506
|
}
|
|
@@ -4488,8 +4530,7 @@ const deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommandError =
|
|
|
4488
4530
|
body: await parseBody(output.body, context),
|
|
4489
4531
|
};
|
|
4490
4532
|
let response;
|
|
4491
|
-
|
|
4492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4493
4534
|
switch (errorCode) {
|
|
4494
4535
|
case "BadRequestException":
|
|
4495
4536
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4499,10 +4540,12 @@ const deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommandError =
|
|
|
4499
4540
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4500
4541
|
default:
|
|
4501
4542
|
const parsedBody = parsedOutput.body;
|
|
4543
|
+
const $metadata = deserializeMetadata(output);
|
|
4544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4502
4545
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4503
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4546
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4504
4547
|
$fault: "client",
|
|
4505
|
-
$metadata
|
|
4548
|
+
$metadata,
|
|
4506
4549
|
});
|
|
4507
4550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4508
4551
|
}
|
|
@@ -4532,8 +4575,7 @@ const deserializeAws_restJson1ListDedicatedIpPoolsCommandError = async (output,
|
|
|
4532
4575
|
body: await parseBody(output.body, context),
|
|
4533
4576
|
};
|
|
4534
4577
|
let response;
|
|
4535
|
-
|
|
4536
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4537
4579
|
switch (errorCode) {
|
|
4538
4580
|
case "BadRequestException":
|
|
4539
4581
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4543,10 +4585,12 @@ const deserializeAws_restJson1ListDedicatedIpPoolsCommandError = async (output,
|
|
|
4543
4585
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4544
4586
|
default:
|
|
4545
4587
|
const parsedBody = parsedOutput.body;
|
|
4588
|
+
const $metadata = deserializeMetadata(output);
|
|
4589
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4546
4590
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4548
4592
|
$fault: "client",
|
|
4549
|
-
$metadata
|
|
4593
|
+
$metadata,
|
|
4550
4594
|
});
|
|
4551
4595
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4552
4596
|
}
|
|
@@ -4576,8 +4620,7 @@ const deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = async
|
|
|
4576
4620
|
body: await parseBody(output.body, context),
|
|
4577
4621
|
};
|
|
4578
4622
|
let response;
|
|
4579
|
-
|
|
4580
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4581
4624
|
switch (errorCode) {
|
|
4582
4625
|
case "BadRequestException":
|
|
4583
4626
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4590,10 +4633,12 @@ const deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = async
|
|
|
4590
4633
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4591
4634
|
default:
|
|
4592
4635
|
const parsedBody = parsedOutput.body;
|
|
4636
|
+
const $metadata = deserializeMetadata(output);
|
|
4637
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4593
4638
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4639
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4595
4640
|
$fault: "client",
|
|
4596
|
-
$metadata
|
|
4641
|
+
$metadata,
|
|
4597
4642
|
});
|
|
4598
4643
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4599
4644
|
}
|
|
@@ -4623,8 +4668,7 @@ const deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = as
|
|
|
4623
4668
|
body: await parseBody(output.body, context),
|
|
4624
4669
|
};
|
|
4625
4670
|
let response;
|
|
4626
|
-
|
|
4627
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4628
4672
|
switch (errorCode) {
|
|
4629
4673
|
case "BadRequestException":
|
|
4630
4674
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4637,10 +4681,12 @@ const deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = as
|
|
|
4637
4681
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4638
4682
|
default:
|
|
4639
4683
|
const parsedBody = parsedOutput.body;
|
|
4684
|
+
const $metadata = deserializeMetadata(output);
|
|
4685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4640
4686
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4641
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4642
4688
|
$fault: "client",
|
|
4643
|
-
$metadata
|
|
4689
|
+
$metadata,
|
|
4644
4690
|
});
|
|
4645
4691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4646
4692
|
}
|
|
@@ -4670,8 +4716,7 @@ const deserializeAws_restJson1ListEmailIdentitiesCommandError = async (output, c
|
|
|
4670
4716
|
body: await parseBody(output.body, context),
|
|
4671
4717
|
};
|
|
4672
4718
|
let response;
|
|
4673
|
-
|
|
4674
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4675
4720
|
switch (errorCode) {
|
|
4676
4721
|
case "BadRequestException":
|
|
4677
4722
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4681,10 +4726,12 @@ const deserializeAws_restJson1ListEmailIdentitiesCommandError = async (output, c
|
|
|
4681
4726
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4682
4727
|
default:
|
|
4683
4728
|
const parsedBody = parsedOutput.body;
|
|
4729
|
+
const $metadata = deserializeMetadata(output);
|
|
4730
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4684
4731
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4685
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4732
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4686
4733
|
$fault: "client",
|
|
4687
|
-
$metadata
|
|
4734
|
+
$metadata,
|
|
4688
4735
|
});
|
|
4689
4736
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4690
4737
|
}
|
|
@@ -4714,8 +4761,7 @@ const deserializeAws_restJson1ListEmailTemplatesCommandError = async (output, co
|
|
|
4714
4761
|
body: await parseBody(output.body, context),
|
|
4715
4762
|
};
|
|
4716
4763
|
let response;
|
|
4717
|
-
|
|
4718
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4719
4765
|
switch (errorCode) {
|
|
4720
4766
|
case "BadRequestException":
|
|
4721
4767
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4725,10 +4771,12 @@ const deserializeAws_restJson1ListEmailTemplatesCommandError = async (output, co
|
|
|
4725
4771
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4726
4772
|
default:
|
|
4727
4773
|
const parsedBody = parsedOutput.body;
|
|
4774
|
+
const $metadata = deserializeMetadata(output);
|
|
4775
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4728
4776
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4729
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4777
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4730
4778
|
$fault: "client",
|
|
4731
|
-
$metadata
|
|
4779
|
+
$metadata,
|
|
4732
4780
|
});
|
|
4733
4781
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4734
4782
|
}
|
|
@@ -4758,8 +4806,7 @@ const deserializeAws_restJson1ListImportJobsCommandError = async (output, contex
|
|
|
4758
4806
|
body: await parseBody(output.body, context),
|
|
4759
4807
|
};
|
|
4760
4808
|
let response;
|
|
4761
|
-
|
|
4762
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4809
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4763
4810
|
switch (errorCode) {
|
|
4764
4811
|
case "BadRequestException":
|
|
4765
4812
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4769,10 +4816,12 @@ const deserializeAws_restJson1ListImportJobsCommandError = async (output, contex
|
|
|
4769
4816
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4770
4817
|
default:
|
|
4771
4818
|
const parsedBody = parsedOutput.body;
|
|
4819
|
+
const $metadata = deserializeMetadata(output);
|
|
4820
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4772
4821
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4773
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4822
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4774
4823
|
$fault: "client",
|
|
4775
|
-
$metadata
|
|
4824
|
+
$metadata,
|
|
4776
4825
|
});
|
|
4777
4826
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4778
4827
|
}
|
|
@@ -4802,8 +4851,7 @@ const deserializeAws_restJson1ListSuppressedDestinationsCommandError = async (ou
|
|
|
4802
4851
|
body: await parseBody(output.body, context),
|
|
4803
4852
|
};
|
|
4804
4853
|
let response;
|
|
4805
|
-
|
|
4806
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4807
4855
|
switch (errorCode) {
|
|
4808
4856
|
case "BadRequestException":
|
|
4809
4857
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4816,10 +4864,12 @@ const deserializeAws_restJson1ListSuppressedDestinationsCommandError = async (ou
|
|
|
4816
4864
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4817
4865
|
default:
|
|
4818
4866
|
const parsedBody = parsedOutput.body;
|
|
4867
|
+
const $metadata = deserializeMetadata(output);
|
|
4868
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4819
4869
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4821
4871
|
$fault: "client",
|
|
4822
|
-
$metadata
|
|
4872
|
+
$metadata,
|
|
4823
4873
|
});
|
|
4824
4874
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4825
4875
|
}
|
|
@@ -4845,8 +4895,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4845
4895
|
body: await parseBody(output.body, context),
|
|
4846
4896
|
};
|
|
4847
4897
|
let response;
|
|
4848
|
-
|
|
4849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4850
4899
|
switch (errorCode) {
|
|
4851
4900
|
case "BadRequestException":
|
|
4852
4901
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4859,10 +4908,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4859
4908
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4860
4909
|
default:
|
|
4861
4910
|
const parsedBody = parsedOutput.body;
|
|
4911
|
+
const $metadata = deserializeMetadata(output);
|
|
4912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4862
4913
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4864
4915
|
$fault: "client",
|
|
4865
|
-
$metadata
|
|
4916
|
+
$metadata,
|
|
4866
4917
|
});
|
|
4867
4918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4868
4919
|
}
|
|
@@ -4884,8 +4935,7 @@ const deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError
|
|
|
4884
4935
|
body: await parseBody(output.body, context),
|
|
4885
4936
|
};
|
|
4886
4937
|
let response;
|
|
4887
|
-
|
|
4888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4889
4939
|
switch (errorCode) {
|
|
4890
4940
|
case "BadRequestException":
|
|
4891
4941
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4895,10 +4945,12 @@ const deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError
|
|
|
4895
4945
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4896
4946
|
default:
|
|
4897
4947
|
const parsedBody = parsedOutput.body;
|
|
4948
|
+
const $metadata = deserializeMetadata(output);
|
|
4949
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4898
4950
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4951
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4900
4952
|
$fault: "client",
|
|
4901
|
-
$metadata
|
|
4953
|
+
$metadata,
|
|
4902
4954
|
});
|
|
4903
4955
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4904
4956
|
}
|
|
@@ -4920,8 +4972,7 @@ const deserializeAws_restJson1PutAccountDetailsCommandError = async (output, con
|
|
|
4920
4972
|
body: await parseBody(output.body, context),
|
|
4921
4973
|
};
|
|
4922
4974
|
let response;
|
|
4923
|
-
|
|
4924
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4925
4976
|
switch (errorCode) {
|
|
4926
4977
|
case "BadRequestException":
|
|
4927
4978
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4934,10 +4985,12 @@ const deserializeAws_restJson1PutAccountDetailsCommandError = async (output, con
|
|
|
4934
4985
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4935
4986
|
default:
|
|
4936
4987
|
const parsedBody = parsedOutput.body;
|
|
4988
|
+
const $metadata = deserializeMetadata(output);
|
|
4989
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4937
4990
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4991
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4939
4992
|
$fault: "client",
|
|
4940
|
-
$metadata
|
|
4993
|
+
$metadata,
|
|
4941
4994
|
});
|
|
4942
4995
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4943
4996
|
}
|
|
@@ -4959,8 +5012,7 @@ const deserializeAws_restJson1PutAccountSendingAttributesCommandError = async (o
|
|
|
4959
5012
|
body: await parseBody(output.body, context),
|
|
4960
5013
|
};
|
|
4961
5014
|
let response;
|
|
4962
|
-
|
|
4963
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4964
5016
|
switch (errorCode) {
|
|
4965
5017
|
case "BadRequestException":
|
|
4966
5018
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -4970,10 +5022,12 @@ const deserializeAws_restJson1PutAccountSendingAttributesCommandError = async (o
|
|
|
4970
5022
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4971
5023
|
default:
|
|
4972
5024
|
const parsedBody = parsedOutput.body;
|
|
5025
|
+
const $metadata = deserializeMetadata(output);
|
|
5026
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4973
5027
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
4974
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4975
5029
|
$fault: "client",
|
|
4976
|
-
$metadata
|
|
5030
|
+
$metadata,
|
|
4977
5031
|
});
|
|
4978
5032
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4979
5033
|
}
|
|
@@ -4995,8 +5049,7 @@ const deserializeAws_restJson1PutAccountSuppressionAttributesCommandError = asyn
|
|
|
4995
5049
|
body: await parseBody(output.body, context),
|
|
4996
5050
|
};
|
|
4997
5051
|
let response;
|
|
4998
|
-
|
|
4999
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5000
5053
|
switch (errorCode) {
|
|
5001
5054
|
case "BadRequestException":
|
|
5002
5055
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5006,10 +5059,12 @@ const deserializeAws_restJson1PutAccountSuppressionAttributesCommandError = asyn
|
|
|
5006
5059
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5007
5060
|
default:
|
|
5008
5061
|
const parsedBody = parsedOutput.body;
|
|
5062
|
+
const $metadata = deserializeMetadata(output);
|
|
5063
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5009
5064
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5010
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5065
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5011
5066
|
$fault: "client",
|
|
5012
|
-
$metadata
|
|
5067
|
+
$metadata,
|
|
5013
5068
|
});
|
|
5014
5069
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5015
5070
|
}
|
|
@@ -5031,8 +5086,7 @@ const deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = a
|
|
|
5031
5086
|
body: await parseBody(output.body, context),
|
|
5032
5087
|
};
|
|
5033
5088
|
let response;
|
|
5034
|
-
|
|
5035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5089
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5036
5090
|
switch (errorCode) {
|
|
5037
5091
|
case "BadRequestException":
|
|
5038
5092
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5045,10 +5099,12 @@ const deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = a
|
|
|
5045
5099
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5046
5100
|
default:
|
|
5047
5101
|
const parsedBody = parsedOutput.body;
|
|
5102
|
+
const $metadata = deserializeMetadata(output);
|
|
5103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5048
5104
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5049
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5050
5106
|
$fault: "client",
|
|
5051
|
-
$metadata
|
|
5107
|
+
$metadata,
|
|
5052
5108
|
});
|
|
5053
5109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5054
5110
|
}
|
|
@@ -5070,8 +5126,7 @@ const deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError =
|
|
|
5070
5126
|
body: await parseBody(output.body, context),
|
|
5071
5127
|
};
|
|
5072
5128
|
let response;
|
|
5073
|
-
|
|
5074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5075
5130
|
switch (errorCode) {
|
|
5076
5131
|
case "BadRequestException":
|
|
5077
5132
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5084,10 +5139,12 @@ const deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError =
|
|
|
5084
5139
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5085
5140
|
default:
|
|
5086
5141
|
const parsedBody = parsedOutput.body;
|
|
5142
|
+
const $metadata = deserializeMetadata(output);
|
|
5143
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5087
5144
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5145
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5089
5146
|
$fault: "client",
|
|
5090
|
-
$metadata
|
|
5147
|
+
$metadata,
|
|
5091
5148
|
});
|
|
5092
5149
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5093
5150
|
}
|
|
@@ -5109,8 +5166,7 @@ const deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = as
|
|
|
5109
5166
|
body: await parseBody(output.body, context),
|
|
5110
5167
|
};
|
|
5111
5168
|
let response;
|
|
5112
|
-
|
|
5113
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5114
5170
|
switch (errorCode) {
|
|
5115
5171
|
case "BadRequestException":
|
|
5116
5172
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5123,10 +5179,12 @@ const deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = as
|
|
|
5123
5179
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5124
5180
|
default:
|
|
5125
5181
|
const parsedBody = parsedOutput.body;
|
|
5182
|
+
const $metadata = deserializeMetadata(output);
|
|
5183
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5126
5184
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5185
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5128
5186
|
$fault: "client",
|
|
5129
|
-
$metadata
|
|
5187
|
+
$metadata,
|
|
5130
5188
|
});
|
|
5131
5189
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5132
5190
|
}
|
|
@@ -5148,8 +5206,7 @@ const deserializeAws_restJson1PutConfigurationSetSuppressionOptionsCommandError
|
|
|
5148
5206
|
body: await parseBody(output.body, context),
|
|
5149
5207
|
};
|
|
5150
5208
|
let response;
|
|
5151
|
-
|
|
5152
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5209
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5153
5210
|
switch (errorCode) {
|
|
5154
5211
|
case "BadRequestException":
|
|
5155
5212
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5162,10 +5219,12 @@ const deserializeAws_restJson1PutConfigurationSetSuppressionOptionsCommandError
|
|
|
5162
5219
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5163
5220
|
default:
|
|
5164
5221
|
const parsedBody = parsedOutput.body;
|
|
5222
|
+
const $metadata = deserializeMetadata(output);
|
|
5223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5165
5224
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5166
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5167
5226
|
$fault: "client",
|
|
5168
|
-
$metadata
|
|
5227
|
+
$metadata,
|
|
5169
5228
|
});
|
|
5170
5229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5171
5230
|
}
|
|
@@ -5187,8 +5246,7 @@ const deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = a
|
|
|
5187
5246
|
body: await parseBody(output.body, context),
|
|
5188
5247
|
};
|
|
5189
5248
|
let response;
|
|
5190
|
-
|
|
5191
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5249
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5192
5250
|
switch (errorCode) {
|
|
5193
5251
|
case "BadRequestException":
|
|
5194
5252
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5201,10 +5259,12 @@ const deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = a
|
|
|
5201
5259
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5202
5260
|
default:
|
|
5203
5261
|
const parsedBody = parsedOutput.body;
|
|
5262
|
+
const $metadata = deserializeMetadata(output);
|
|
5263
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5204
5264
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5205
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5265
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5206
5266
|
$fault: "client",
|
|
5207
|
-
$metadata
|
|
5267
|
+
$metadata,
|
|
5208
5268
|
});
|
|
5209
5269
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5210
5270
|
}
|
|
@@ -5226,8 +5286,7 @@ const deserializeAws_restJson1PutDedicatedIpInPoolCommandError = async (output,
|
|
|
5226
5286
|
body: await parseBody(output.body, context),
|
|
5227
5287
|
};
|
|
5228
5288
|
let response;
|
|
5229
|
-
|
|
5230
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5289
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5231
5290
|
switch (errorCode) {
|
|
5232
5291
|
case "BadRequestException":
|
|
5233
5292
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5240,10 +5299,12 @@ const deserializeAws_restJson1PutDedicatedIpInPoolCommandError = async (output,
|
|
|
5240
5299
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5241
5300
|
default:
|
|
5242
5301
|
const parsedBody = parsedOutput.body;
|
|
5302
|
+
const $metadata = deserializeMetadata(output);
|
|
5303
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5243
5304
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5244
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5305
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5245
5306
|
$fault: "client",
|
|
5246
|
-
$metadata
|
|
5307
|
+
$metadata,
|
|
5247
5308
|
});
|
|
5248
5309
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5249
5310
|
}
|
|
@@ -5265,8 +5326,7 @@ const deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = async
|
|
|
5265
5326
|
body: await parseBody(output.body, context),
|
|
5266
5327
|
};
|
|
5267
5328
|
let response;
|
|
5268
|
-
|
|
5269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5270
5330
|
switch (errorCode) {
|
|
5271
5331
|
case "BadRequestException":
|
|
5272
5332
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5279,10 +5339,12 @@ const deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = async
|
|
|
5279
5339
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5280
5340
|
default:
|
|
5281
5341
|
const parsedBody = parsedOutput.body;
|
|
5342
|
+
const $metadata = deserializeMetadata(output);
|
|
5343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5282
5344
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5284
5346
|
$fault: "client",
|
|
5285
|
-
$metadata
|
|
5347
|
+
$metadata,
|
|
5286
5348
|
});
|
|
5287
5349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5288
5350
|
}
|
|
@@ -5304,8 +5366,7 @@ const deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = asy
|
|
|
5304
5366
|
body: await parseBody(output.body, context),
|
|
5305
5367
|
};
|
|
5306
5368
|
let response;
|
|
5307
|
-
|
|
5308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5309
5370
|
switch (errorCode) {
|
|
5310
5371
|
case "AlreadyExistsException":
|
|
5311
5372
|
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
@@ -5324,10 +5385,12 @@ const deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = asy
|
|
|
5324
5385
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5325
5386
|
default:
|
|
5326
5387
|
const parsedBody = parsedOutput.body;
|
|
5388
|
+
const $metadata = deserializeMetadata(output);
|
|
5389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5327
5390
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5328
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5329
5392
|
$fault: "client",
|
|
5330
|
-
$metadata
|
|
5393
|
+
$metadata,
|
|
5331
5394
|
});
|
|
5332
5395
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5333
5396
|
}
|
|
@@ -5349,8 +5412,7 @@ const deserializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommandE
|
|
|
5349
5412
|
body: await parseBody(output.body, context),
|
|
5350
5413
|
};
|
|
5351
5414
|
let response;
|
|
5352
|
-
|
|
5353
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5354
5416
|
switch (errorCode) {
|
|
5355
5417
|
case "BadRequestException":
|
|
5356
5418
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5363,10 +5425,12 @@ const deserializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommandE
|
|
|
5363
5425
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5364
5426
|
default:
|
|
5365
5427
|
const parsedBody = parsedOutput.body;
|
|
5428
|
+
const $metadata = deserializeMetadata(output);
|
|
5429
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5366
5430
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5431
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5368
5432
|
$fault: "client",
|
|
5369
|
-
$metadata
|
|
5433
|
+
$metadata,
|
|
5370
5434
|
});
|
|
5371
5435
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5372
5436
|
}
|
|
@@ -5388,8 +5452,7 @@ const deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = async
|
|
|
5388
5452
|
body: await parseBody(output.body, context),
|
|
5389
5453
|
};
|
|
5390
5454
|
let response;
|
|
5391
|
-
|
|
5392
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5393
5456
|
switch (errorCode) {
|
|
5394
5457
|
case "BadRequestException":
|
|
5395
5458
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5402,10 +5465,12 @@ const deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = async
|
|
|
5402
5465
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5403
5466
|
default:
|
|
5404
5467
|
const parsedBody = parsedOutput.body;
|
|
5468
|
+
const $metadata = deserializeMetadata(output);
|
|
5469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5405
5470
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5407
5472
|
$fault: "client",
|
|
5408
|
-
$metadata
|
|
5473
|
+
$metadata,
|
|
5409
5474
|
});
|
|
5410
5475
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5411
5476
|
}
|
|
@@ -5435,8 +5500,7 @@ const deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommandError
|
|
|
5435
5500
|
body: await parseBody(output.body, context),
|
|
5436
5501
|
};
|
|
5437
5502
|
let response;
|
|
5438
|
-
|
|
5439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5503
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5440
5504
|
switch (errorCode) {
|
|
5441
5505
|
case "BadRequestException":
|
|
5442
5506
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5449,10 +5513,12 @@ const deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommandError
|
|
|
5449
5513
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5450
5514
|
default:
|
|
5451
5515
|
const parsedBody = parsedOutput.body;
|
|
5516
|
+
const $metadata = deserializeMetadata(output);
|
|
5517
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5452
5518
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5454
5520
|
$fault: "client",
|
|
5455
|
-
$metadata
|
|
5521
|
+
$metadata,
|
|
5456
5522
|
});
|
|
5457
5523
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5458
5524
|
}
|
|
@@ -5474,8 +5540,7 @@ const deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = a
|
|
|
5474
5540
|
body: await parseBody(output.body, context),
|
|
5475
5541
|
};
|
|
5476
5542
|
let response;
|
|
5477
|
-
|
|
5478
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5479
5544
|
switch (errorCode) {
|
|
5480
5545
|
case "BadRequestException":
|
|
5481
5546
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5488,10 +5553,12 @@ const deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = a
|
|
|
5488
5553
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5489
5554
|
default:
|
|
5490
5555
|
const parsedBody = parsedOutput.body;
|
|
5556
|
+
const $metadata = deserializeMetadata(output);
|
|
5557
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5491
5558
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5492
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5493
5560
|
$fault: "client",
|
|
5494
|
-
$metadata
|
|
5561
|
+
$metadata,
|
|
5495
5562
|
});
|
|
5496
5563
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5497
5564
|
}
|
|
@@ -5513,8 +5580,7 @@ const deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = a
|
|
|
5513
5580
|
body: await parseBody(output.body, context),
|
|
5514
5581
|
};
|
|
5515
5582
|
let response;
|
|
5516
|
-
|
|
5517
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5518
5584
|
switch (errorCode) {
|
|
5519
5585
|
case "BadRequestException":
|
|
5520
5586
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5527,10 +5593,12 @@ const deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = a
|
|
|
5527
5593
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5528
5594
|
default:
|
|
5529
5595
|
const parsedBody = parsedOutput.body;
|
|
5596
|
+
const $metadata = deserializeMetadata(output);
|
|
5597
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5530
5598
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5531
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5532
5600
|
$fault: "client",
|
|
5533
|
-
$metadata
|
|
5601
|
+
$metadata,
|
|
5534
5602
|
});
|
|
5535
5603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5536
5604
|
}
|
|
@@ -5552,8 +5620,7 @@ const deserializeAws_restJson1PutSuppressedDestinationCommandError = async (outp
|
|
|
5552
5620
|
body: await parseBody(output.body, context),
|
|
5553
5621
|
};
|
|
5554
5622
|
let response;
|
|
5555
|
-
|
|
5556
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5557
5624
|
switch (errorCode) {
|
|
5558
5625
|
case "BadRequestException":
|
|
5559
5626
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5563,10 +5630,12 @@ const deserializeAws_restJson1PutSuppressedDestinationCommandError = async (outp
|
|
|
5563
5630
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5564
5631
|
default:
|
|
5565
5632
|
const parsedBody = parsedOutput.body;
|
|
5633
|
+
const $metadata = deserializeMetadata(output);
|
|
5634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5566
5635
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5567
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5568
5637
|
$fault: "client",
|
|
5569
|
-
$metadata
|
|
5638
|
+
$metadata,
|
|
5570
5639
|
});
|
|
5571
5640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5572
5641
|
}
|
|
@@ -5592,8 +5661,7 @@ const deserializeAws_restJson1SendBulkEmailCommandError = async (output, context
|
|
|
5592
5661
|
body: await parseBody(output.body, context),
|
|
5593
5662
|
};
|
|
5594
5663
|
let response;
|
|
5595
|
-
|
|
5596
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5597
5665
|
switch (errorCode) {
|
|
5598
5666
|
case "AccountSuspendedException":
|
|
5599
5667
|
case "com.amazonaws.sesv2#AccountSuspendedException":
|
|
@@ -5621,10 +5689,12 @@ const deserializeAws_restJson1SendBulkEmailCommandError = async (output, context
|
|
|
5621
5689
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5622
5690
|
default:
|
|
5623
5691
|
const parsedBody = parsedOutput.body;
|
|
5692
|
+
const $metadata = deserializeMetadata(output);
|
|
5693
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5624
5694
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5625
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5626
5696
|
$fault: "client",
|
|
5627
|
-
$metadata
|
|
5697
|
+
$metadata,
|
|
5628
5698
|
});
|
|
5629
5699
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5630
5700
|
}
|
|
@@ -5650,8 +5720,7 @@ const deserializeAws_restJson1SendCustomVerificationEmailCommandError = async (o
|
|
|
5650
5720
|
body: await parseBody(output.body, context),
|
|
5651
5721
|
};
|
|
5652
5722
|
let response;
|
|
5653
|
-
|
|
5654
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5723
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5655
5724
|
switch (errorCode) {
|
|
5656
5725
|
case "BadRequestException":
|
|
5657
5726
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5676,10 +5745,12 @@ const deserializeAws_restJson1SendCustomVerificationEmailCommandError = async (o
|
|
|
5676
5745
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5677
5746
|
default:
|
|
5678
5747
|
const parsedBody = parsedOutput.body;
|
|
5748
|
+
const $metadata = deserializeMetadata(output);
|
|
5749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5679
5750
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5680
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5681
5752
|
$fault: "client",
|
|
5682
|
-
$metadata
|
|
5753
|
+
$metadata,
|
|
5683
5754
|
});
|
|
5684
5755
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5685
5756
|
}
|
|
@@ -5705,8 +5776,7 @@ const deserializeAws_restJson1SendEmailCommandError = async (output, context) =>
|
|
|
5705
5776
|
body: await parseBody(output.body, context),
|
|
5706
5777
|
};
|
|
5707
5778
|
let response;
|
|
5708
|
-
|
|
5709
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5779
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5710
5780
|
switch (errorCode) {
|
|
5711
5781
|
case "AccountSuspendedException":
|
|
5712
5782
|
case "com.amazonaws.sesv2#AccountSuspendedException":
|
|
@@ -5734,10 +5804,12 @@ const deserializeAws_restJson1SendEmailCommandError = async (output, context) =>
|
|
|
5734
5804
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5735
5805
|
default:
|
|
5736
5806
|
const parsedBody = parsedOutput.body;
|
|
5807
|
+
const $metadata = deserializeMetadata(output);
|
|
5808
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5737
5809
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5738
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5739
5811
|
$fault: "client",
|
|
5740
|
-
$metadata
|
|
5812
|
+
$metadata,
|
|
5741
5813
|
});
|
|
5742
5814
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5743
5815
|
}
|
|
@@ -5759,8 +5831,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5759
5831
|
body: await parseBody(output.body, context),
|
|
5760
5832
|
};
|
|
5761
5833
|
let response;
|
|
5762
|
-
|
|
5763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5834
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5764
5835
|
switch (errorCode) {
|
|
5765
5836
|
case "BadRequestException":
|
|
5766
5837
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5776,10 +5847,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5776
5847
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5777
5848
|
default:
|
|
5778
5849
|
const parsedBody = parsedOutput.body;
|
|
5850
|
+
const $metadata = deserializeMetadata(output);
|
|
5851
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5779
5852
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5780
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5853
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5781
5854
|
$fault: "client",
|
|
5782
|
-
$metadata
|
|
5855
|
+
$metadata,
|
|
5783
5856
|
});
|
|
5784
5857
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5785
5858
|
}
|
|
@@ -5805,8 +5878,7 @@ const deserializeAws_restJson1TestRenderEmailTemplateCommandError = async (outpu
|
|
|
5805
5878
|
body: await parseBody(output.body, context),
|
|
5806
5879
|
};
|
|
5807
5880
|
let response;
|
|
5808
|
-
|
|
5809
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5810
5882
|
switch (errorCode) {
|
|
5811
5883
|
case "BadRequestException":
|
|
5812
5884
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5819,10 +5891,12 @@ const deserializeAws_restJson1TestRenderEmailTemplateCommandError = async (outpu
|
|
|
5819
5891
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5820
5892
|
default:
|
|
5821
5893
|
const parsedBody = parsedOutput.body;
|
|
5894
|
+
const $metadata = deserializeMetadata(output);
|
|
5895
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5822
5896
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5823
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5897
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5824
5898
|
$fault: "client",
|
|
5825
|
-
$metadata
|
|
5899
|
+
$metadata,
|
|
5826
5900
|
});
|
|
5827
5901
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5828
5902
|
}
|
|
@@ -5844,8 +5918,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5844
5918
|
body: await parseBody(output.body, context),
|
|
5845
5919
|
};
|
|
5846
5920
|
let response;
|
|
5847
|
-
|
|
5848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5921
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5849
5922
|
switch (errorCode) {
|
|
5850
5923
|
case "BadRequestException":
|
|
5851
5924
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5861,10 +5934,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5861
5934
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5862
5935
|
default:
|
|
5863
5936
|
const parsedBody = parsedOutput.body;
|
|
5937
|
+
const $metadata = deserializeMetadata(output);
|
|
5938
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5864
5939
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5865
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5940
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5866
5941
|
$fault: "client",
|
|
5867
|
-
$metadata
|
|
5942
|
+
$metadata,
|
|
5868
5943
|
});
|
|
5869
5944
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5870
5945
|
}
|
|
@@ -5886,8 +5961,7 @@ const deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError
|
|
|
5886
5961
|
body: await parseBody(output.body, context),
|
|
5887
5962
|
};
|
|
5888
5963
|
let response;
|
|
5889
|
-
|
|
5890
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5891
5965
|
switch (errorCode) {
|
|
5892
5966
|
case "BadRequestException":
|
|
5893
5967
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5900,10 +5974,12 @@ const deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError
|
|
|
5900
5974
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5901
5975
|
default:
|
|
5902
5976
|
const parsedBody = parsedOutput.body;
|
|
5977
|
+
const $metadata = deserializeMetadata(output);
|
|
5978
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5903
5979
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5904
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5980
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5905
5981
|
$fault: "client",
|
|
5906
|
-
$metadata
|
|
5982
|
+
$metadata,
|
|
5907
5983
|
});
|
|
5908
5984
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5909
5985
|
}
|
|
@@ -5925,8 +6001,7 @@ const deserializeAws_restJson1UpdateContactCommandError = async (output, context
|
|
|
5925
6001
|
body: await parseBody(output.body, context),
|
|
5926
6002
|
};
|
|
5927
6003
|
let response;
|
|
5928
|
-
|
|
5929
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5930
6005
|
switch (errorCode) {
|
|
5931
6006
|
case "BadRequestException":
|
|
5932
6007
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5942,10 +6017,12 @@ const deserializeAws_restJson1UpdateContactCommandError = async (output, context
|
|
|
5942
6017
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5943
6018
|
default:
|
|
5944
6019
|
const parsedBody = parsedOutput.body;
|
|
6020
|
+
const $metadata = deserializeMetadata(output);
|
|
6021
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5945
6022
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5947
6024
|
$fault: "client",
|
|
5948
|
-
$metadata
|
|
6025
|
+
$metadata,
|
|
5949
6026
|
});
|
|
5950
6027
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5951
6028
|
}
|
|
@@ -5967,8 +6044,7 @@ const deserializeAws_restJson1UpdateContactListCommandError = async (output, con
|
|
|
5967
6044
|
body: await parseBody(output.body, context),
|
|
5968
6045
|
};
|
|
5969
6046
|
let response;
|
|
5970
|
-
|
|
5971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6047
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5972
6048
|
switch (errorCode) {
|
|
5973
6049
|
case "BadRequestException":
|
|
5974
6050
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -5984,10 +6060,12 @@ const deserializeAws_restJson1UpdateContactListCommandError = async (output, con
|
|
|
5984
6060
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5985
6061
|
default:
|
|
5986
6062
|
const parsedBody = parsedOutput.body;
|
|
6063
|
+
const $metadata = deserializeMetadata(output);
|
|
6064
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5987
6065
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
5988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6066
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5989
6067
|
$fault: "client",
|
|
5990
|
-
$metadata
|
|
6068
|
+
$metadata,
|
|
5991
6069
|
});
|
|
5992
6070
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5993
6071
|
}
|
|
@@ -6009,8 +6087,7 @@ const deserializeAws_restJson1UpdateCustomVerificationEmailTemplateCommandError
|
|
|
6009
6087
|
body: await parseBody(output.body, context),
|
|
6010
6088
|
};
|
|
6011
6089
|
let response;
|
|
6012
|
-
|
|
6013
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6014
6091
|
switch (errorCode) {
|
|
6015
6092
|
case "BadRequestException":
|
|
6016
6093
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -6023,10 +6100,12 @@ const deserializeAws_restJson1UpdateCustomVerificationEmailTemplateCommandError
|
|
|
6023
6100
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6024
6101
|
default:
|
|
6025
6102
|
const parsedBody = parsedOutput.body;
|
|
6103
|
+
const $metadata = deserializeMetadata(output);
|
|
6104
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6026
6105
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
6027
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6106
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6028
6107
|
$fault: "client",
|
|
6029
|
-
$metadata
|
|
6108
|
+
$metadata,
|
|
6030
6109
|
});
|
|
6031
6110
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6032
6111
|
}
|
|
@@ -6048,8 +6127,7 @@ const deserializeAws_restJson1UpdateEmailIdentityPolicyCommandError = async (out
|
|
|
6048
6127
|
body: await parseBody(output.body, context),
|
|
6049
6128
|
};
|
|
6050
6129
|
let response;
|
|
6051
|
-
|
|
6052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6053
6131
|
switch (errorCode) {
|
|
6054
6132
|
case "BadRequestException":
|
|
6055
6133
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -6062,10 +6140,12 @@ const deserializeAws_restJson1UpdateEmailIdentityPolicyCommandError = async (out
|
|
|
6062
6140
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6063
6141
|
default:
|
|
6064
6142
|
const parsedBody = parsedOutput.body;
|
|
6143
|
+
const $metadata = deserializeMetadata(output);
|
|
6144
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6065
6145
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
6066
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6146
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6067
6147
|
$fault: "client",
|
|
6068
|
-
$metadata
|
|
6148
|
+
$metadata,
|
|
6069
6149
|
});
|
|
6070
6150
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6071
6151
|
}
|
|
@@ -6087,8 +6167,7 @@ const deserializeAws_restJson1UpdateEmailTemplateCommandError = async (output, c
|
|
|
6087
6167
|
body: await parseBody(output.body, context),
|
|
6088
6168
|
};
|
|
6089
6169
|
let response;
|
|
6090
|
-
|
|
6091
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6170
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6092
6171
|
switch (errorCode) {
|
|
6093
6172
|
case "BadRequestException":
|
|
6094
6173
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
@@ -6101,10 +6180,12 @@ const deserializeAws_restJson1UpdateEmailTemplateCommandError = async (output, c
|
|
|
6101
6180
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6102
6181
|
default:
|
|
6103
6182
|
const parsedBody = parsedOutput.body;
|
|
6183
|
+
const $metadata = deserializeMetadata(output);
|
|
6184
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6104
6185
|
response = new SESv2ServiceException_1.SESv2ServiceException({
|
|
6105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6186
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6106
6187
|
$fault: "client",
|
|
6107
|
-
$metadata
|
|
6188
|
+
$metadata,
|
|
6108
6189
|
});
|
|
6109
6190
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6110
6191
|
}
|
|
@@ -7505,5 +7586,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7505
7586
|
if (data["__type"] !== undefined) {
|
|
7506
7587
|
return sanitizeErrorCode(data["__type"]);
|
|
7507
7588
|
}
|
|
7508
|
-
return "";
|
|
7509
7589
|
};
|