Error handling for the Widget API
Error handling for both timeouts and errors must be in place to have a graceful exit.
If there are timeouts or lookup failures for remote API calls, then you need to omit related categories, related items and related products widgets from category, product and mobile views.
Timeouts are set at 750 milliseconds.
You must set up error handling for scenarios in which an API call returns a non-200 response, such as 404 or 500.
This step is essential, and not at all optional. Error handling is required for responses that aren't 200 (success).