API Error Responses

Read status first, then msg

Read status first, then msg

Most API answers are JSON with a status field. true means it worked; false means it did not, and msg holds a code that says why.

{
  "status": false,
  "msg": "ERROR_AUTHENTICATION_FAILED"
}

The HTTP codes

HTTPmsgWhat it means
200status: trueIt worked. The result is in msg or in fields of the endpoint, such as results.
200ERROR_...The request was wrong: a missing parameter, an index you do not own, a plan limit. Each article of the endpoint lists its codes.
403ERROR_AUTHENTICATION_FAILEDThe email and API key do not match.
403ERROR_SCOPED_KEY_ENDPOINT_NOT_ALLOWED, ERROR_SCOPED_KEY_CORE_NOT_ALLOWEDA scoped key was used for an endpoint or an index it does not cover.
403VECTOR_NOT_ALLOWEDAI is switched off on the plan of the index owner. Nothing ran and nothing was counted.
404WRONG_API_HOSTThe method lives on the other host. The answer carries correct_host and correct_url.
429ERROR_RATE_LIMIT_PER_MINUTE, ERROR_RATE_LIMIT_PER_HOURToo many calls. Wait for Retry-After seconds. See Rate limits.
429ERROR_AI_MONTHLY_QUOTA_EXCEEDEDThe monthly AI allowance is used up. See API Quota.

Good to know

  • Check status on every answer: an HTTP 200 alone does not mean it worked.
  • A few older endpoints answer with plain text or an empty body instead of JSON. Their articles show the exact answer.
  • A management method called on api.opensolr.com answers a plain 404 Not Found page.

API Reference pages