github.com/aavshr/aws-sdk-go@v1.41.3/service/apigateway/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package apigateway
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeBadRequestException for service response error code
    12  	// "BadRequestException".
    13  	//
    14  	// The submitted request is not valid, for example, the input is incomplete
    15  	// or incorrect. See the accompanying error message for details.
    16  	ErrCodeBadRequestException = "BadRequestException"
    17  
    18  	// ErrCodeConflictException for service response error code
    19  	// "ConflictException".
    20  	//
    21  	// The request configuration has conflicts. For details, see the accompanying
    22  	// error message.
    23  	ErrCodeConflictException = "ConflictException"
    24  
    25  	// ErrCodeLimitExceededException for service response error code
    26  	// "LimitExceededException".
    27  	//
    28  	// The request exceeded the rate limit. Retry after the specified time period.
    29  	ErrCodeLimitExceededException = "LimitExceededException"
    30  
    31  	// ErrCodeNotFoundException for service response error code
    32  	// "NotFoundException".
    33  	//
    34  	// The requested resource is not found. Make sure that the request URI is correct.
    35  	ErrCodeNotFoundException = "NotFoundException"
    36  
    37  	// ErrCodeServiceUnavailableException for service response error code
    38  	// "ServiceUnavailableException".
    39  	//
    40  	// The requested service is not available. For details see the accompanying
    41  	// error message. Retry after the specified time period.
    42  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    43  
    44  	// ErrCodeTooManyRequestsException for service response error code
    45  	// "TooManyRequestsException".
    46  	//
    47  	// The request has reached its throttling limit. Retry after the specified time
    48  	// period.
    49  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    50  
    51  	// ErrCodeUnauthorizedException for service response error code
    52  	// "UnauthorizedException".
    53  	//
    54  	// The request is denied because the caller has insufficient permissions.
    55  	ErrCodeUnauthorizedException = "UnauthorizedException"
    56  )
    57  
    58  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    59  	"BadRequestException":         newErrorBadRequestException,
    60  	"ConflictException":           newErrorConflictException,
    61  	"LimitExceededException":      newErrorLimitExceededException,
    62  	"NotFoundException":           newErrorNotFoundException,
    63  	"ServiceUnavailableException": newErrorServiceUnavailableException,
    64  	"TooManyRequestsException":    newErrorTooManyRequestsException,
    65  	"UnauthorizedException":       newErrorUnauthorizedException,
    66  }