---
title: MessageNotApprovedError
framework: retentionmessaging
role: symbol
role_heading: Object
path: retentionmessaging/messagenotapprovederror
---

# MessageNotApprovedError

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

## Declaration

```data
object MessageNotApprovedError
```

## Properties

errorCode: errorMessage:

## Overview

Overview The Configure Default Message endpoint returns this error if the messageIdentifier doesn’t have an imageState of APPROVED. To determine the current state of a message, see Get Message List.

## 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)
- [ImageNotApprovedError](retentionmessaging/imagenotapprovederror.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)
