Skip to content

Status Codes

Just Serp API uses both HTTP status codes and a business logic code in the JSON response to indicate the outcome of an API request.

Status Code Table

ScenarioHTTP StatusBusiness CodeCredits Charged
Success200200✅ Yes
Invalid Parameters200400❌ No
Invalid API Key401401❌ No
Insufficient Credits200402❌ No
Resource Not Found200404❌ No
Rate Limit Exceeded200429❌ No
Internal Server Error500500❌ No

Handling Errors

When an error occurs, the API returns a JSON object containing the business code and a message to help you diagnose the issue.

Error Response Example

json
{
  "code": 401,
  "message": "X-API-Key is missing. Please set X-API-Key header."
}

We recommend implementing retry logic for 500 errors with exponential backoff.