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

Timeouts are set at 750 milliseconds.

Errors

You must set up error handling for scenarios in which an API call returns a non-200 response, such as 404 or 500.