Error Codes
Check the error codes returned in the API responses from Sourcehub.
Error Codes
| Code | HTTP Status Code | Description | Reason | Solution |
|---|---|---|---|---|
| AUTHENTICATION_ERROR | 401 | The API credentials passed in the API call differ from the ones generated on the Dashboard. | Different keys for test mode and live modes. Expired API key. | The API keys must be active and entered correctly with no whitespace before or after the keys. |
| BAD_REQUEST_ERROR | 400 | Invalid request made by client. | Requested parameter is either invalid or resource not found. | The requested parameter must be passed correctly without any leading or trailing whitespace. |
| TOO_MANY_REQUESTS | 429 | When there are too many API requests on our server, to prevent such cases, the server will respond with a 429 HTTP status code. | Making too many request in shortest time span. | Take a break and try later, let the pending requests on our sever be processed until it is ready to accept new requests. |
| INTERNAL_SERVER_ERROR | 500 | Due to any programming issue. | Though this situation is rare, an internal server issue has caused this error. This problem is temporary. | You may try again after we resolve the issue from our end. Feel free to contact our developer support team if you need further assistance. |