Error codes for Shopper APIs
Understand the internal error codes for the Shopper APIs.
When integrating with our Shopper APIs, it's essential to understand the responses you receive, especially when something doesn't go as planned. This section provides an overview of the common error codes you might encounter using our APIs. Understanding these codes allows you to troubleshoot issues more effectively and implement robust application error handling. Whether it's a client-side error indicating a problem with the request or a server-side error pointing to an issue on our end, this guide will help you navigate and resolve any discrepancies efficiently.
Significance of Error Codes
Error codes are critical in understanding the issues that occur during API integration. They serve as immediate indicators of what went wrong in the interaction between the client application and the server:
400 Bad Request: Indicates that the server cannot process the request due to a client error, such as incorrect syntax.
401 Unauthorized: This error code signals the request lacks valid authentication credentials.
403 Forbidden: This error code means access to the requested resource is denied, possibly due to insufficient permissions.
404 Not Found: The requested resource was unavailable on the server.
405 Method Not Allowed: Occurs when the resource does not support the method specified in the request.
409 Conflict: Suggests a request conflict with the server's current state.
412 Precondition Failed: Indicates that one or more conditions given in the request header fields are evaluated as false when tested on the server.
413 Request Entity Too Large: This error code means the request is larger than the server can process.
500 Internal Server Error: Signals a generic error message when the server encounters an unexpected condition and no more specific message is suitable.
Understanding these codes helps developers diagnose problems quickly, making it easier to implement solutions or contact support with a clear understanding of the issue.
Last updated