# Unable to catch custom exception from service

**URL:** <https://community.appfarm.io/t/unable-to-catch-custom-exception-from-service/1373>\
**Category:** Ask the community\
**Tags:** service, web-request\
**Created:** [September 3, 2024, 9:57am UTC](https://community.appfarm.io/t/unable-to-catch-custom-exception-from-service/1373 "2024-09-03T09:57:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lavrans](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/lavrans/32/1460_2.png) [@Lavrans](https://community.appfarm.io/u/Lavrans)\
**Post date:** [September 3, 2024, 9:57am UTC](https://community.appfarm.io/t/unable-to-catch-custom-exception-from-service/1373/1 "2024-09-03T09:57:40Z")

</div>

When web request is failing, it returns http code 404. I was not able to catch this outside in action in client. When catching exception in service and returning a throw custom exception, I am still not able to catch this in client. The only way to catch it is through a catch all exceptions.

The catch all exceptions is to general to be able to make any actions based on it automatically and we end up with a general error message which is breaking the functionality and frustrating for end users.

![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/c/c81e4684d37d19c44fc9d5754e6efb411c4e7aa6.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/8/873b836ca85f4343822bd7d8f54a1a44c1bf0c39.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/3/380681562d83d282186099284c5aa54a97090eb4.png)

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [September 3, 2024, 10:12am UTC](https://community.appfarm.io/t/unable-to-catch-custom-exception-from-service/1373/2 "2024-09-03T10:12:51Z")

</div>

Hi!

This one is fixed in the next version. Let’s DM on this one.
