# What type of exception does the Confluence REST API throw when one tries to set content properties over the limit of 32KB?

**URL:** <https://community.developer.atlassian.com/t/what-type-of-exception-does-the-confluence-rest-api-throw-when-one-tries-to-set-content-properties-over-the-limit-of-32kb/72160>\
**Category:** Confluence Cloud\
**Tags:** documentation, exception, content-property\
**Created:** [August 21, 2023, 2:24pm UTC](https://community.developer.atlassian.com/t/what-type-of-exception-does-the-confluence-rest-api-throw-when-one-tries-to-set-content-properties-over-the-limit-of-32kb/72160 "2023-08-21T14:24:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JacopoLanzoni1](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@JacopoLanzoni1](https://community.developer.atlassian.com/u/JacopoLanzoni1)\
**Post date:** [August 21, 2023, 2:24pm UTC](https://community.developer.atlassian.com/t/what-type-of-exception-does-the-confluence-rest-api-throw-when-one-tries-to-set-content-properties-over-the-limit-of-32kb/72160/1 "2023-08-21T14:24:00Z")

</div>

Atlassian provides [https://developer.atlassian.com/server/confluence/content-properties-in-the-rest-api/](https://developer.atlassian.com/server/confluence/content-properties-in-the-rest-api/) with documentation on how to use the content properties REST API. Yet, no documentation is provided for the exception the endpoints can throw. For example, What type of exception does the Confluence REST API throw when one tries to set content properties over the limit of 32KB?

---

<div class="post-metadata">

**Author:** ![ibuchanan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ibuchanan/32/35815_2.png) [@ibuchanan](https://community.developer.atlassian.com/u/ibuchanan)\
**Post date:** [August 21, 2023, 3:25pm UTC](https://community.developer.atlassian.com/t/what-type-of-exception-does-the-confluence-rest-api-throw-when-one-tries-to-set-content-properties-over-the-limit-of-32kb/72160/2 "2023-08-21T15:25:27Z")

</div>

@JacopoLanzoni1,

You posted in the Confluence Cloud channel but posted a link to Confluence Server docs. Assuming you still meant Confluence Cloud, it would help to have context about your app. Is it Connect or Forge? I ask because [Connect’s limits](https://developer.atlassian.com/cloud/confluence/modules/content-property/) seem to be much smaller than 32KB so I’m not sure that limit applies.

In any case, [Confluence Cloud REST API docs for content properties](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties/#api-attachments-attachment-id-properties-get) indicate the standard HTTP status codes, which would mean your client should expect `400 Bad Request` if the property is wrong (too big, wrong format, etc).

---

<div class="post-metadata">

**Author:** ![JacopoLanzoni1](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@JacopoLanzoni1](https://community.developer.atlassian.com/u/JacopoLanzoni1)\
**Post date:** [August 21, 2023, 3:40pm UTC](https://community.developer.atlassian.com/t/what-type-of-exception-does-the-confluence-rest-api-throw-when-one-tries-to-set-content-properties-over-the-limit-of-32kb/72160/3 "2023-08-21T15:40:53Z")

</div>

Thank you @ibuchanan, you solved my problem!

I was looking for Connect, so the link you provided answers my question.

Disappointing to see that, while in version 1 I’d get a 413 Request Entity Too Large as the thrown exception, in version 2 of the API I get a generic 400 as you indicate.
