# Getting error 415 when updating email subscription status

**URL:** <https://community.hubspot.com/t/getting-error-415-when-updating-email-subscription-status/11770>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [October 16, 2018, 3:27pm UTC](https://community.hubspot.com/t/getting-error-415-when-updating-email-subscription-status/11770 "2018-10-16T15:27:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 16, 2018, 3:27pm UTC](https://community.hubspot.com/t/getting-error-415-when-updating-email-subscription-status/11770/1 "2018-10-16T15:27:21Z")

</div>

I’m trying to update subscription statuses of an email address. I get a “200 OK” returned from my http call, but when I check the API usage of my application I see the call has an error code of 415 beside it.  
Does anyone know what error code 415 is?  
The error code 415 does not seem to be documented.  
Thx

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 16, 2018, 3:36pm UTC](https://community.hubspot.com/t/getting-error-415-when-updating-email-subscription-status/11770/2 "2018-10-16T15:36:13Z")

</div>

415 is “Unsupported media type”. Had to add a header to the http call “application/json”.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 16, 2018, 4:24pm UTC](https://community.hubspot.com/t/getting-error-415-when-updating-email-subscription-status/11770/3 "2018-10-16T16:24:15Z")

</div>

Hi [@Steve\_N](https://community.hubspot.com/u/steve_n),

Correct. Many of the endpoints require the `Content-Type: application/json` header in the request. This is usually documented in the _Method Details_ card near the top of [an article](https://developers.hubspot.com/docs/methods/email/update_status).
