Error Handling

When an error occurs, the response will include an error code and a message explaining the cause of the failure. For detailed information on all error codes, please refer to the error reference guide below.

Khumbu System Error Codes

NameValue
KS-0001Request payload must be a valid Json string.
KS-0002Provider name must be between 2 and 100.
KS-0003Invalid Provider name: %s.
KS-0004Internal Server Error.
KS-0006Required %s Field: %s is missing.
KS-0007providerOrderId is Null/Empty
KS-0008Access Denied.
KS-0009partnerOrderId: %s not found during partner order cancel
KS-0010Invalid value provided for the field '%s'
KS-0011The '%s' field is required and cannot be left blank or missing.
KS-0012Invalid Partner name: %s.
KS-0013Invalid Store Id: %s
KS-0014Partner store with storeId %s is inactive.
KS-0015Store Id is missing in request headers.
KS-0016Invalid fulfillment mode/service mode %s.
KS-0017Invalid payment method %s.
KS-0018Duplicate order request found, ignoring request. Provider order id: %s
KS-0019Store is inactive.
KS-0020Provider order id %s not found for provider cancel order.
KS-0021Invalid currency code %s.
KS-0022Invalid item type %s.
KS-1001Provider store not found.
KS-1002Partner store not found.
KS-1003JSON payload is invalid.
KS-1004Partner order id is null.
KS-1005Order is already canceled.
KS-1006Invalid app client Id
KS-1007Ks order is null.
KS-1008Order is in init status since long. ksOrderId: %s
KS-2003API Call for partner api is failed
KS-2004API Call for provider api is failed
KS-2010Exception occurred while processing request.

Different HTTP Codes

NameValue
200OK - The request was successful.
201Created - The request has been fulfilled and a new resource has been created.
202Accepted - The request has been accepted for processing, but the processing has not been completed.
400Bad Request - The server could not understand the request due to invalid syntax.
401Unauthorized - The client must authenticate itself to get the requested response.
403Forbidden - The client does not have access rights to the content.
404Not Found - Resource not found.
429Too Many Requests - Rate limit exceeded.
500Internal Server Error - The server has encountered a situation it doesn't know how to handle.
503Service Unavailable - API temporarily down.