# Can't send PM via API (HTTPUnprocessableEntity 422)

**URL:** <https://meta.discourse.org/t/cant-send-pm-via-api-httpunprocessableentity-422/55017>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [January 1, 2017, 4:04am UTC](https://meta.discourse.org/t/cant-send-pm-via-api-httpunprocessableentity-422/55017 "2017-01-01T04:04:24Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [January 2, 2017, 2:08pm UTC](https://meta.discourse.org/t/cant-send-pm-via-api-httpunprocessableentity-422/55017/8 "2017-01-02T14:08:11Z")

</div>

anyway you can look at the response body and not just the status code? The response body should still return json with an “errors” section that could explain what is going on:

example:

```
{"action":"create_post","errors":["Your error message here for a 422 status code"]}

```

---

_[View the full topic](https://meta.discourse.org/t/cant-send-pm-via-api-httpunprocessableentity-422/55017)._
