Errors
The LeadsPedia API uses standard HTTP status codes to indicate whether a request was successful or an error occurred.
HTTP Status Codes
| Status Code | Description |
|---|---|
| 200 OK | The request was processed successfully. |
| 400 Bad Request | The request is invalid or contains missing or incorrect parameters. |
| 401 Unauthorized | Authentication failed due to missing or invalid API credentials. |
| 403 Forbidden | You do not have permission to access the requested resource. |
| 404 Not Found | The requested resource or endpoint could not be found. |
| 405 Method Not Allowed | The HTTP method is not supported for the requested endpoint. |
| 429 Too Many Requests | The API rate limit has been exceeded. |
| 500 Internal Server Error | An unexpected server error occurred. |
| 503 Service Unavailable | The API is temporarily unavailable. |
Handling Errors
When an API request fails, check the HTTP status code to identify the type of error.- 4xx errors — Review the request parameters and authentication credentials before retrying.
- 5xx errors — The error occurred on the server. Retry the request after a short delay.
429), reduce the frequency of requests and retry after the applicable rate limit period.
