In api calls like utils.api.product.getById(...), the underlying request module is completely ignoring 404 responses. When requesting with a template, most of the time this is fine, however in some cases even when requesting with a template, the response to /products.php?productId=... returns the entire BigCommerce 404 (Not Found) page. This is quite problematic.
There should be some way to handle or bubble up status codes to the callback.
In api calls like
utils.api.product.getById(...), the underlying request module is completely ignoring 404 responses. When requesting with a template, most of the time this is fine, however in some cases even when requesting with a template, the response to/products.php?productId=...returns the entire BigCommerce 404 (Not Found) page. This is quite problematic.There should be some way to handle or bubble up status codes to the callback.