Leadspedia

Errors

The LeadsPedia API uses standard HTTP status codes to indicate whether a request was successful or an error occurred.

HTTP Status Codes

Status CodeDescription
200 OKThe request was processed successfully.
400 Bad RequestThe request is invalid or contains missing or incorrect parameters.
401 UnauthorizedAuthentication failed due to missing or invalid API credentials.
403 ForbiddenYou do not have permission to access the requested resource.
404 Not FoundThe requested resource or endpoint could not be found.
405 Method Not AllowedThe HTTP method is not supported for the requested endpoint.
429 Too Many RequestsThe API rate limit has been exceeded.
500 Internal Server ErrorAn unexpected server error occurred.
503 Service UnavailableThe 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.
For rate limit errors (429), reduce the frequency of requests and retry after the applicable rate limit period.