# Capture Fetch Collection Error Result

**URL:** <https://community.weweb.io/t/capture-fetch-collection-error-result/847>\
**Category:** How do I?\
**Created:** [July 22, 2022, 1:56pm UTC](https://community.weweb.io/t/capture-fetch-collection-error-result/847 "2022-07-22T13:56:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteletkemansst](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@peteletkemansst](https://community.weweb.io/u/peteletkemansst)\
**Post date:** [July 22, 2022, 1:56pm UTC](https://community.weweb.io/t/capture-fetch-collection-error-result/847/1 "2022-07-22T13:56:00Z")

</div>

I have a collection which is filled by a third party REST API call.  
Most of the time this call works fine, however some times the third party server is down for a few minutes.  
How can I capture the error when the server is down?  
Note, this REST call happens when a page/control is loaded and not necessarily when a form is submitted (although it could happen here as well).

---

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [July 22, 2022, 3:13pm UTC](https://community.weweb.io/t/capture-fetch-collection-error-result/847/2 "2022-07-22T15:13:29Z")

</div>

> [@Redirect based on collection error](https://community.weweb.io/t/redirect-based-on-collection-error/574):
>
> If a collection that is used in the page returns an error code, ie Unauthorized, I’d like to redirect to a standard error page. How can I do this?

> [@Workflow Errors](https://community.weweb.io/t/workflow-errors/512):
>
> Do we have access to throw errors in a workflow? For example, I want to create a custom javascript in an Action inside of a workflow. If that custom javascript fails, I’d like to throw an error and set the error message and error name to a custom value.
