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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package apigatewayv2
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	ErrCodeAccessDeniedException = "AccessDeniedException"
    14  
    15  	// ErrCodeBadRequestException for service response error code
    16  	// "BadRequestException".
    17  	//
    18  	// The request is not valid, for example, the input is incomplete or incorrect.
    19  	// See the accompanying error message for details.
    20  	ErrCodeBadRequestException = "BadRequestException"
    21  
    22  	// ErrCodeConflictException for service response error code
    23  	// "ConflictException".
    24  	//
    25  	// The requested operation would cause a conflict with the current state of
    26  	// a service resource associated with the request. Resolve the conflict before
    27  	// retrying this request. See the accompanying error message for details.
    28  	ErrCodeConflictException = "ConflictException"
    29  
    30  	// ErrCodeNotFoundException for service response error code
    31  	// "NotFoundException".
    32  	//
    33  	// The resource specified in the request was not found. See the message field
    34  	// for more information.
    35  	ErrCodeNotFoundException = "NotFoundException"
    36  
    37  	// ErrCodeTooManyRequestsException for service response error code
    38  	// "TooManyRequestsException".
    39  	//
    40  	// A limit has been exceeded. See the accompanying error message for details.
    41  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    42  )
    43  
    44  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    45  	"AccessDeniedException":    newErrorAccessDeniedException,
    46  	"BadRequestException":      newErrorBadRequestException,
    47  	"ConflictException":        newErrorConflictException,
    48  	"NotFoundException":        newErrorNotFoundException,
    49  	"TooManyRequestsException": newErrorTooManyRequestsException,
    50  }