

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

Learn about the errors that the Secrets Manager extension returns, with their HTTP status codes and meanings. The error type is in the `X-Amzn-Errortype` header. Errors that the extension itself returns on the query and path routes have a body that looks like `{"message": "..."}`. Errors from the runtime use `Message` instead.


| Status | Error type | Meaning | 
| --- | --- | --- | 
| 400 | `BadRequestException` | A missing `secretId`, a parameter that isn't valid, or an `X-Forwarded-For` header | 
| 400 | `ValidationException` | An unknown operation, or a request that doesn't match the API | 
| 401 | `MissingAuthenticationToken` | The request isn't signed | 
| 403 | `InvalidSsrfTokenException` | A missing or wrong server-side request forgery (SSRF) token | 
| 403 | `SignatureDoesNotMatch`, `InvalidClientTokenId` | A bad SigV4 signature or access key ID, or a request time more than 5 seconds off | 
| 429 | `ThrottlingException` | Too many calls in flight. The limit is 100, or fewer under memory pressure. Retry after the time in the `Retry-After` header. | 
| 500 | `InternalFailure` | An internal error. The body is empty. | 
| 502 | `ConnectionError` | The extension couldn't connect to Secrets Manager or read its response | 
| 502 | `BadGatewayException` | Secrets Manager returned an error that the extension doesn't declare | 
| 503 | `ServiceUnavailableException` | The extension is still loading or isn't loaded, the extension stopped during the call, or the runtime couldn't check caller authentication | 
| 504 | `TimeoutError` | The call to Secrets Manager timed out | 
| 508 | `LoopDetectedException` | A call loop between extensions | 

The extension returns Secrets Manager errors, such as `ResourceNotFoundException` and `AccessDeniedException`, with their original message. The extension returns the Secrets Manager `ThrottlingException` with status `400`.