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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package apigatewaymanagementapi
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeForbiddenException for service response error code
    12  	// "ForbiddenException".
    13  	//
    14  	// The caller is not authorized to invoke this operation.
    15  	ErrCodeForbiddenException = "ForbiddenException"
    16  
    17  	// ErrCodeGoneException for service response error code
    18  	// "GoneException".
    19  	//
    20  	// The connection with the provided id no longer exists.
    21  	ErrCodeGoneException = "GoneException"
    22  
    23  	// ErrCodeLimitExceededException for service response error code
    24  	// "LimitExceededException".
    25  	//
    26  	// The client is sending more than the allowed number of requests per unit of
    27  	// time or the WebSocket client side buffer is full.
    28  	ErrCodeLimitExceededException = "LimitExceededException"
    29  
    30  	// ErrCodePayloadTooLargeException for service response error code
    31  	// "PayloadTooLargeException".
    32  	//
    33  	// The data has exceeded the maximum size allowed.
    34  	ErrCodePayloadTooLargeException = "PayloadTooLargeException"
    35  )
    36  
    37  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    38  	"ForbiddenException":       newErrorForbiddenException,
    39  	"GoneException":            newErrorGoneException,
    40  	"LimitExceededException":   newErrorLimitExceededException,
    41  	"PayloadTooLargeException": newErrorPayloadTooLargeException,
    42  }