

# Errors that the AWS AppConfig extension in AWS Systems Manager Cloud Extensions returns

The AWS AppConfig extension returns errors in a standard format.

Every error response has an `X-Amzn-Errortype` header with the name of the error, and a JSON body with `__type`, `message`, and, for most errors, `reason`:

```json
{"__type":"{{error}}","message":"{{text}}","reason":"{{reason}}"}
```


| Error | HTTP status | Reason | Retryable | When | 
| --- | --- | --- | --- | --- | 
| `ValidationException` | 400 | `FIELD_VALIDATION_FAILED` | No | A parameter is missing or doesn't meet its constraints (`errors[].fieldConstraint`), or the request names something that doesn't exist or can't be read (`errors[].semanticError`). The problems follow this table. | 
| `ValidationException` | 400 | `CANNOT_PARSE` | No | The body isn't JSON, or doesn't have the shape of the input. | 
| `ValidationException` | 400 | `UNKNOWN_OPERATION` | No | The `X-Amz-Target` names an operation that the extension doesn't have, or the content type isn't `application/x-amz-json-1.1`. | 
| `AccessDeniedException` | 403 | `ACCESS_DENIED_BY_REMOTE` | No | AWS AppConfig refused the role of the extension, or rejected its credentials. | 
| `AccessDeniedException` | 403 | `MISSING_AUTHENTICATION`, `SIGNATURE_EXPIRED`, `UNKNOWN_ACCESS_KEY`, `IAM_CREDENTIAL_USED`, `SIGNATURE_MISMATCH` | No | The profile requires signed requests, and the request isn't signed with credentials that the profile accepts. | 
| `ThrottlingException` | 429 | `THROTTLED_BY_REMOTE` | Yes | AWS AppConfig throttled the call. | 
| `BadGatewayException` | 502 | `EXTENSION_INITIALIZE_FAILED` | No | The settings of the profile entry aren't valid, and the extension didn't start. | 
| `InternalServerException` | 500 | None | Yes | AWS AppConfig returned an internal error, or the extension couldn't read the flag data. The extension also returns this error, with the message `Unable to call AWS AppConfig`, in the following cases: it can't reach AWS AppConfig, it can't get credentials, or you didn't approve the `appconfigdata` capability. | 
| `ServiceUnavailableException` | 503 | `EXTENSION_LOADING`, `EXTENSION_RELOADED` | Yes | The extension is still loading, or a settings update replaced it during the call. | 

The `problem` of a `semanticError` is one of the following:


| Problem | `item` | When | 
| --- | --- | --- | 
| `RESOURCE_NOT_FOUND` | The type that AWS AppConfig didn't find: `Application`, `Environment`, `ConfigurationProfile`, or `Deployment` | The application, environment, or configuration profile doesn't exist, or you haven't deployed anything to the environment. | 
| `FLAG_NOT_FOUND` | `flag`, with the key in `value` | `GetFlag` names a flag that the configuration doesn't have. | 
| `FLAG_UNREADABLE` | `flag`, with the key in `value` | `GetFlag` names a configuration that isn't a feature flag profile. | 
| `REJECTED_BY_REMOTE` | None | AWS AppConfig rejected the request for another reason. The message is the message of AWS AppConfig. | 

If a setting isn't valid, for example a **Poll interval** of 0, every request returns the following error:

```json
{"__type":"BadGatewayException","extension":"appconfig","message":"Version {{version}} of the extension 'appconfig' failed to initialize. Check its settings, or use an earlier version.","reason":"EXTENSION_INITIALIZE_FAILED","version":"{{version}}"}
```