Skip to content

Requests Ignoring 404 Responses #214

@jspizziri

Description

@jspizziri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions