Error Response Codes

The following common error codes can occur with SCAPI requests.

Make sure to follow the best practice of coding to the HTTP response status code, not the HTTP response message.

If responding to a SCAPI request takes too long, a HTTP 504 status code is returned:

Shopper APIs and Custom APIs must respond within 10 seconds, and SCAPI Admin API requests must respond within 60 seconds. If a response to a SCAPI request exceeds the timeout threshold, the HTTP 504 status code is returned.

If you are encountering issues with timeouts, seek to optimize your hook implementations.

Some API families, such as SLAS and Omnichannel Inventory (OCI), do not have gateway timeouts.