# Sanity check on DiscourseApi error handling

**URL:** https://meta.discourse.org/t/sanity-check-on-discourseapi-error-handling/94753
**Category:** Development
**Created:** [August 14, 2018, 10:40pm UTC](https://meta.discourse.org/t/sanity-check-on-discourseapi-error-handling/94753 "2018-08-14T22:40:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![typeoneerror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/typeoneerror/32/80817_2.png) [@typeoneerror](https://meta.discourse.org/u/typeoneerror)
#### Post date: [August 14, 2018, 10:40pm UTC](https://meta.discourse.org/t/sanity-check-on-discourseapi-error-handling/94753/1 "2018-08-14T22:40:49Z")

</div>

I was having a bit of a hard time getting “errors” responses out of the `discourse_api`. I made a quick PR to address this. I’m hoping someone might put some eyeballs on this as a quick sanity check. Is there a way to do what I’m doing without this PR? More details in the PR description.

Thanks!

[https://github.com/discourse/discourse\_api/pull/155](https://github.com/discourse/discourse_api/pull/155)

---

<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: [August 15, 2018, 6:34pm UTC](https://meta.discourse.org/t/sanity-check-on-discourseapi-error-handling/94753/2 "2018-08-15T18:34:38Z")

</div>

Just marking that this was merged in and a [new gem version](https://bundler.rubygems.org/gems/discourse_api/versions/0.25.0) was cut.

---

<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: [August 15, 2018, 6:34pm UTC](https://meta.discourse.org/t/sanity-check-on-discourseapi-error-handling/94753/3 "2018-08-15T18:34:41Z")

</div>


