Error Codes

Complete reference for all error codes and how to handle them.

HTTP Status Codes

Status CodeError CodeDescriptionSolution
400missing_parameterRequired parameter is missingInclude all required parameters (url, params)
400invalid_urlInvalid URL formatEnsure URL is a valid HTTP/HTTPS URL
400invalid_categoryInvalid category in paramsUse only valid categories from the allowed list
401invalid_api_keyInvalid or missing API keyCheck your API key in the Authorization header
403forbidden_categoryCategory not allowed for your planUpgrade to Premium or use allowed categories
429rate_limit_exceededRate limit exceededWait for the retryAfter period or upgrade plan
500internal_errorInternal server errorRetry the request or contact support

Error Response Examples

Rate Limit Error (429)
Loading code...
Invalid API Key (401)
Loading code...
Missing Parameter (400)
Loading code...
Invalid URL (400)
Loading code...

Error Handling Best Practices

Recommended Approach
  • • Always check the success field in the response
  • • Handle rate limit errors (429) with retry logic and exponential backoff
  • • Validate API key and parameters before making requests
  • • Log errors for debugging and monitoring
  • • Provide user-friendly error messages based on error codes
  • • Check response headers for additional context (e.g., Retry-After)
PageSight | PageSight