# Improve (add) friendly JSON API error messages (at least generic ones)

**URL:** <https://meta.discourse.org/t/improve-add-friendly-json-api-error-messages-at-least-generic-ones/70272>\
**Category:** Feature\
**Created:** [Setembro 18, 2017, 12:44pm UTC](https://meta.discourse.org/t/improve-add-friendly-json-api-error-messages-at-least-generic-ones/70272 "2017-09-18T12:44:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dylanh724](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanh724/32/119642_2.png) [@dylanh724](https://meta.discourse.org/u/dylanh724)\
**Post date:** [Setembro 19, 2017, 1:33am UTC](https://meta.discourse.org/t/improve-add-friendly-json-api-error-messages-at-least-generic-ones/70272/4 "2017-09-19T01:33:11Z")

</div>

> [@riking](#):
>
> It’s also pretty great how the bad csrf error is an array instead of an object.

Yea it’s pretty awkward and inconsistent right now.

> [@codinghorror](#):
>
> You need more specific reports of exactly what you are sending.

In OP, I mentioned I posted to /posts – the first one I typo’d the secret. The 2nd one I left out a required field. To be specific as to exactly what I wrote:

1st post (typo key):

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/8/d893a2a85bfcda2bd0c002ac0ed9d3c0e2405676.png)

2nd post (uncheck “raw”, leaving out a required field):

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/a/dad2a4942e34430afff112155e9c1430e1e02014.png)

---

_[View the full topic](https://meta.discourse.org/t/improve-add-friendly-json-api-error-messages-at-least-generic-ones/70272)._
