# Interceptors in AthomCloudAPI / HomeyAPI?

**URL:** <https://community.homey.app/t/interceptors-in-athomcloudapi-homeyapi/16235>\
**Category:** Developers\
**Created:** [July 30, 2019, 11:48pm UTC](https://community.homey.app/t/interceptors-in-athomcloudapi-homeyapi/16235 "2019-07-30T23:48:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ismar.slomic](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ismar.slomic/32/13411_2.png) [@ismar.slomic](https://community.homey.app/u/ismar.slomic)\
**Post date:** [July 30, 2019, 11:48pm UTC](https://community.homey.app/t/interceptors-in-athomcloudapi-homeyapi/16235/1 "2019-07-30T23:48:10Z")

</div>

Hi,  
Does AthomCloudAPI / HomeyAPI provide some sort of interceptors for requests/responses, such as Axios Interceptors ([https://github.com/axios/axios/blob/master/README.md](https://github.com/axios/axios/blob/master/README.md))?

That would be very useful in regards to error handling and progress loading in my VueJS app.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 31, 2019, 7:01am UTC](https://community.homey.app/t/interceptors-in-athomcloudapi-homeyapi/16235/2 "2019-07-31T07:01:23Z")

</div>

In short: no. You may be able to monkeypatch `fetch` as a hack.

---

<div class="post-metadata">

**Author:** ![ismar.slomic](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ismar.slomic/32/13411_2.png) [@ismar.slomic](https://community.homey.app/u/ismar.slomic)\
**Post date:** [July 31, 2019, 9:59pm UTC](https://community.homey.app/t/interceptors-in-athomcloudapi-homeyapi/16235/3 "2019-07-31T21:59:01Z")

</div>

Actually I could drop using the Homey JS library and just do the AJAX call directly with use of Axios. I really dont see any benefit using a library with outdated interface definitions
