If an API call cannot reach our Walmart gateway, a basic HTTP error code is returned (such as 503 Service Unavailable). However, if the gateway is reached, a full error response object is returned.
Table 3 shows the currently supported error code responses.
- The first parameter provides the error description.
- The second parameter shows the HTTP status code.
- The third parameter specifies the error category.
- The fourth parameter specifies the error severity.
- The fifth parameter specifies whether the error response includes a field tag.
Table 3 – Error Codes
Error Code | HTTP Status | Category | Severity | ‘Field’ Included |
---|---|---|---|---|
SOME_CONTENT_NOT_FOUND |
206
|
Application
|
Info
|
False
|
INVALID_REQUEST |
400
|
DATA
|
ERROR
|
True
|
INVALID_REQUEST_HEADER |
400
|
DATA
|
ERROR
|
True
|
INVALID_REQUEST_PARAM |
400
|
DATA
|
ERROR
|
True
|
INVALID_REQUEST_CONTENT |
400
|
DATA
|
ERROR
|
True
|
MISSING_REQUEST_HEADER |
400
|
DATA
|
ERROR
|
True
|
MISSING_REQUEST_PARAM |
400
|
DATA
|
ERROR
|
True
|
MALFORMED_REQUEST_CONTENT |
400
|
DATA
|
ERROR
|
True
|
UNAUTHORIZED |
401
|
DATA
|
ERROR
|
False
|
CONTENT_NOT_FOUND |
404
|
Application
|
Info
|
False
|
URI_NOT_FOUND |
404
|
DATA
|
ERROR
|
False
|
METHOD_NOT_ALLOWED |
405
|
DATA
|
ERROR
|
False
|
INVALID_ACCEPT_TYPE |
406
|
Application
|
ERROR
|
False
|
UNSUPPORTED_MEDIA_TYPE |
415
|
DATA
|
ERROR
|
False
|
RESOURCE_IS_LOCKED.GMP_RECEIVER_API |
423
|
Application
|
ERROR
|
False
|
REQUEST_THRESHOLD_VIOLATED |
429
|
REQUEST
|
ERROR
|
False
|
INVALID_SYSTEM_STATE |
500
|
System
|
ERROR
|
False
|
SYSTEM_ERROR |
500
|
System
|
ERROR
|
False
|
DOWNSTREAM_SYSTEM_TIME_OUT |
504
|
System
|
ERROR
|
False
|