# Error Catcher

**URL:** <https://discuss.google.dev/t/error-catcher/125783>\
**Category:** Integration Services\
**Tags:** application-integration\
**Created:** [July 22, 2023, 2:51am UTC](https://discuss.google.dev/t/error-catcher/125783 "2023-07-22T02:51:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [July 22, 2023, 2:51am UTC](https://discuss.google.dev/t/error-catcher/125783/1 "2023-07-22T02:51:31Z")

</div>

How to set custom response while using error catcher?

 ![kishorehlc_1-1689994075586.png](https://d2yds90mtvelsl.cloudfront.net/original/2X/7/7407fa3c7e0fa29a6b2cdb181e3c387fd07afdd8.png)

Even though I use Data mapper and assign cutsom message as above, it still gives below default error message in response

 ![kishorehlc_2-1689994187053.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/9/1/919ae833c08e6b2f07c375eec18679fa5d5ab650.png)

---

<div class="post-metadata">

**Author:** ![rohitjangid](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/rohitjangid/32/138232_2.png) [@rohitjangid](https://discuss.google.dev/u/rohitjangid)\
**Post date:** [July 22, 2023, 4:22am UTC](https://discuss.google.dev/t/error-catcher/125783/2 "2023-07-22T04:22:37Z")

</div>

Hi kishorehl-c  
You can try using [Return Task](https://cloud.google.com/application-integration/docs/configure-return-task) to return custom error code and error message.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [July 22, 2023, 4:46am UTC](https://discuss.google.dev/t/error-catcher/125783/3 "2023-07-22T04:46:49Z")

</div>

Hi Rohit. I have added but still got same error

 ![kishorehlc_0-1690001195189.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/8/6/86c87f54e64a139e89caa9a65cb6c22e0cf0a7e9.png)

---

<div class="post-metadata">

**Author:** ![rohitjangid](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/rohitjangid/32/138232_2.png) [@rohitjangid](https://discuss.google.dev/u/rohitjangid)\
**Post date:** [July 22, 2023, 4:52am UTC](https://discuss.google.dev/t/error-catcher/125783/4 "2023-07-22T04:52:40Z")

</div>

Hi

Going by the screenshot you posted, it seems you have attached error catcher on the trigger. Can you try attaching the same to the Rest Caller Task or the task generating the error?

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [July 22, 2023, 5:40am UTC](https://discuss.google.dev/t/error-catcher/125783/5 "2023-07-22T05:40:48Z")

</div>

Yes, I tried Rest task with Fatal strategy but no luck.

---

<div class="post-metadata">

**Author:** ![venkat12345](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/venkat12345/32/15435_2.png) [@venkat12345](https://discuss.google.dev/u/venkat12345)\
**Post date:** [September 27, 2023, 10:19am UTC](https://discuss.google.dev/t/error-catcher/125783/6 "2023-09-27T10:19:51Z")

</div>

HI,

Need some help on error catcher,

How you get error message info from rest endpoint to error catcher.

Please help me

---

<div class="post-metadata">

**Author:** ![venkat12345](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/venkat12345/32/15435_2.png) [@venkat12345](https://discuss.google.dev/u/venkat12345)\
**Post date:** [September 27, 2023, 10:22am UTC](https://discuss.google.dev/t/error-catcher/125783/7 "2023-09-27T10:22:55Z")

</div>

Hi,

Need some help from error catcher

How to get error message from rest endpoint to error catcher.

Please help me
