---
title: ImageNotApprovedError
framework: retentionmessaging
role: symbol
role_heading: Object
path: retentionmessaging/imagenotapprovederror
---

# ImageNotApprovedError

An error that indicates the image isn’t in the approved state, so you can’t configure it as part of a default message.

## Declaration

```data
object ImageNotApprovedError
```

## Properties

errorCode: errorMessage:

## Overview

Overview The Configure Default Message endpoint returns this error if the image that’s associated with the messageIdentifier doesn’t have an imageState of APPROVED.

## See Also

### Errors

- [AltTextTooLongError](retentionmessaging/alttexttoolongerror.md)
- [BodyTooLongError](retentionmessaging/bodytoolongerror.md)
- [DefaultMessageNotFoundError](retentionmessaging/defaultmessagenotfounderror.md)
- [ExistingPerformanceTestRunError](retentionmessaging/existingperformancetestrunerror.md)
- [ForbiddenNoPassingTestError](retentionmessaging/forbiddennopassingtesterror.md)
- [HeaderTooLongError](retentionmessaging/headertoolongerror.md)
- [ImageAlreadyExistsError](retentionmessaging/imagealreadyexistserror.md)
- [ImageInUseError](retentionmessaging/imageinuseerror.md)
- [ImageNotFoundError](retentionmessaging/imagenotfounderror.md)
- [InvalidImageError](retentionmessaging/invalidimageerror.md)
- [InvalidLocaleError](retentionmessaging/invalidlocaleerror.md)
- [InvalidPerformanceTestRequestError](retentionmessaging/invalidperformancetestrequesterror.md)
- [InvalidProductIdError](retentionmessaging/invalidproductiderror.md)
- [InvalidRequestIdError](retentionmessaging/invalidrequestiderror.md)
- [MaximumNumberOfImagesReachedError](retentionmessaging/maximumnumberofimagesreachederror.md)
