<!--
{
  "availability" : [
    "Retention Messaging API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/HeaderTooLongError",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "data:retention_messaging:HeaderTooLongError"
  },
  "title" : "HeaderTooLongError"
}
-->

# HeaderTooLongError

An error that indicates the header text is too long.

```
object HeaderTooLongError
```

## Discussion

When calling [`Upload Message`](/documentation/RetentionMessaging/Upload-Message), provide a maximum of 66 characters.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)