Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set BAD_REQUEST error code for 400 error instead of UNKNOWN #2062

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class MigrationHubErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-acm-pca/include/aws/acm-pca/ACMPCAErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class ACMPCAErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-acm/include/aws/acm/ACMErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class ACMErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AlexaForBusinessErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class PrometheusServiceErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
4 changes: 2 additions & 2 deletions aws-cpp-sdk-amplify/include/aws/amplify/AmplifyErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class AmplifyErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
DEPENDENT_SERVICE_FAILURE,
DEPENDENT_SERVICE_FAILURE= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
LIMIT_EXCEEDED,
NOT_FOUND,
UNAUTHORIZED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class AmplifyBackendErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
GATEWAY_TIMEOUT,
GATEWAY_TIMEOUT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
NOT_FOUND,
TOO_MANY_REQUESTS
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class APIGatewayErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICT,
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
LIMIT_EXCEEDED,
NOT_FOUND,
TOO_MANY_REQUESTS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class ApiGatewayManagementApiErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class ApiGatewayV2Errors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICT,
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
NOT_FOUND,
TOO_MANY_REQUESTS
};
Expand Down
4 changes: 2 additions & 2 deletions aws-cpp-sdk-appconfig/include/aws/appconfig/AppConfigErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class AppConfigErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICT,
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_SERVER,
PAYLOAD_TOO_LARGE,
SERVICE_QUOTA_EXCEEDED
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-appflow/include/aws/appflow/AppflowErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AppflowErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AppIntegrationsServiceErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class ApplicationAutoScalingErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class ApplicationInsightsErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_SERVER,
INTERNAL_SERVER= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
RESOURCE_IN_USE,
TAGS_ALREADY_EXIST,
TOO_MANY_TAGS
Expand Down
4 changes: 2 additions & 2 deletions aws-cpp-sdk-appmesh/include/aws/appmesh/AppMeshErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class AppMeshErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICT,
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
FORBIDDEN,
INTERNAL_SERVER_ERROR,
LIMIT_EXCEEDED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AppStreamErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
2 changes: 1 addition & 1 deletion aws-cpp-sdk-appsync/include/aws/appsync/AppSyncErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AppSyncErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand All @@ -50,7 +51,6 @@ enum class AppSyncErrors
API_KEY_LIMIT_EXCEEDED= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
API_KEY_VALIDITY_OUT_OF_BOUNDS,
API_LIMIT_EXCEEDED,
BAD_REQUEST,
CONCURRENT_MODIFICATION,
GRAPH_Q_L_SCHEMA,
LIMIT_EXCEEDED,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-athena/include/aws/athena/AthenaErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AthenaErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AuditManagerErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AutoScalingPlansErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class AutoScalingErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class TransferErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-backup/include/aws/backup/BackupErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class BackupErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-batch/include/aws/batch/BatchErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class BatchErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-braket/include/aws/braket/BraketErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class BraketErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-budgets/include/aws/budgets/BudgetsErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class BudgetsErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-ce/include/aws/ce/CostExplorerErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CostExplorerErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
4 changes: 2 additions & 2 deletions aws-cpp-sdk-chime/include/aws/chime/ChimeErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class ChimeErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICT,
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
FORBIDDEN,
NOT_FOUND,
RESOURCE_LIMIT_EXCEEDED,
Expand Down
4 changes: 2 additions & 2 deletions aws-cpp-sdk-cloud9/include/aws/cloud9/Cloud9Errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ enum class Cloud9Errors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONCURRENT_ACCESS,
CONCURRENT_ACCESS= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICT,
FORBIDDEN,
INTERNAL_SERVER_ERROR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudDirectoryErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudFormationErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudFrontErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
1 change: 1 addition & 0 deletions aws-cpp-sdk-cloudhsm/include/aws/cloudhsm/CloudHSMErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudHSMErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudHSMV2Errors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudSearchErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudSearchDomainErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CloudTrailErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CodeArtifactErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class CodeBuildErrors
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
BAD_REQUEST = 25,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
Expand Down
Loading