github.com/aavshr/aws-sdk-go@v1.41.3/service/ssooidc/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package ssooidc 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 // 14 // You do not have sufficient access to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeAuthorizationPendingException for service response error code 18 // "AuthorizationPendingException". 19 // 20 // Indicates that a request to authorize a client with an access user session 21 // token is pending. 22 ErrCodeAuthorizationPendingException = "AuthorizationPendingException" 23 24 // ErrCodeExpiredTokenException for service response error code 25 // "ExpiredTokenException". 26 // 27 // Indicates that the token issued by the service is expired and is no longer 28 // valid. 29 ErrCodeExpiredTokenException = "ExpiredTokenException" 30 31 // ErrCodeInternalServerException for service response error code 32 // "InternalServerException". 33 // 34 // Indicates that an error from the service occurred while trying to process 35 // a request. 36 ErrCodeInternalServerException = "InternalServerException" 37 38 // ErrCodeInvalidClientException for service response error code 39 // "InvalidClientException". 40 // 41 // Indicates that the clientId or clientSecret in the request is invalid. For 42 // example, this can occur when a client sends an incorrect clientId or an expired 43 // clientSecret. 44 ErrCodeInvalidClientException = "InvalidClientException" 45 46 // ErrCodeInvalidClientMetadataException for service response error code 47 // "InvalidClientMetadataException". 48 // 49 // Indicates that the client information sent in the request during registration 50 // is invalid. 51 ErrCodeInvalidClientMetadataException = "InvalidClientMetadataException" 52 53 // ErrCodeInvalidGrantException for service response error code 54 // "InvalidGrantException". 55 // 56 // Indicates that a request contains an invalid grant. This can occur if a client 57 // makes a CreateToken request with an invalid grant type. 58 ErrCodeInvalidGrantException = "InvalidGrantException" 59 60 // ErrCodeInvalidRequestException for service response error code 61 // "InvalidRequestException". 62 // 63 // Indicates that something is wrong with the input to the request. For example, 64 // a required parameter might be missing or out of range. 65 ErrCodeInvalidRequestException = "InvalidRequestException" 66 67 // ErrCodeInvalidScopeException for service response error code 68 // "InvalidScopeException". 69 // 70 // Indicates that the scope provided in the request is invalid. 71 ErrCodeInvalidScopeException = "InvalidScopeException" 72 73 // ErrCodeSlowDownException for service response error code 74 // "SlowDownException". 75 // 76 // Indicates that the client is making the request too frequently and is more 77 // than the service can handle. 78 ErrCodeSlowDownException = "SlowDownException" 79 80 // ErrCodeUnauthorizedClientException for service response error code 81 // "UnauthorizedClientException". 82 // 83 // Indicates that the client is not currently authorized to make the request. 84 // This can happen when a clientId is not issued for a public client. 85 ErrCodeUnauthorizedClientException = "UnauthorizedClientException" 86 87 // ErrCodeUnsupportedGrantTypeException for service response error code 88 // "UnsupportedGrantTypeException". 89 // 90 // Indicates that the grant type in the request is not supported by the service. 91 ErrCodeUnsupportedGrantTypeException = "UnsupportedGrantTypeException" 92 ) 93 94 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 95 "AccessDeniedException": newErrorAccessDeniedException, 96 "AuthorizationPendingException": newErrorAuthorizationPendingException, 97 "ExpiredTokenException": newErrorExpiredTokenException, 98 "InternalServerException": newErrorInternalServerException, 99 "InvalidClientException": newErrorInvalidClientException, 100 "InvalidClientMetadataException": newErrorInvalidClientMetadataException, 101 "InvalidGrantException": newErrorInvalidGrantException, 102 "InvalidRequestException": newErrorInvalidRequestException, 103 "InvalidScopeException": newErrorInvalidScopeException, 104 "SlowDownException": newErrorSlowDownException, 105 "UnauthorizedClientException": newErrorUnauthorizedClientException, 106 "UnsupportedGrantTypeException": newErrorUnsupportedGrantTypeException, 107 }