Overview
Busha Commerce uses HTTP response codes to indicate the success or failure of an API request. In general, 2xx codes indicate that the request was successful. 4xx codes mean that there was an error with what was requested (for example, a required parameter wasn't included), and 5xx code indicates an error on Busha Commerce's end (these would almost never occur).
Response Codes | Cause |
---|---|
200 - OK | Everything works as expected and intended action was carried out. |
401 - Unauthorized | The request was not authorized. Invalid API KEY or No API Key was provided via the Header X-BC-API-KEY |
400 - Bad Request | A parameter passed was invalid or a required field was not included in the request |
404 - Not Found | The requested resource does not exist |
429 - Too Many Requests | Too many requests hit the API per second. We recommend that you use exponential backoff in your requests to our API. |
500, 502, 503, 504 - Server Errors | Something went wrong on our end. This shouldn't happen so please report as soon as you encounter any instance of this. |