Public API

Errors

Public API error shape and common failure handling.

Public API errors use a consistent JSON shape.

{
  "error": {
    "type": "invalid_request",
    "message": "Invalid value",
    "field": "type"
  }
}

Fields

FieldTypeDescription
error.typestringMachine-readable error category.
error.messagestringHuman-readable summary.
error.fieldstring or nullField related to the error, when available.

Common statuses

StatusMeaning
400Invalid query, parameter, or request shape.
404Public resource was not found.
500Temporary server failure.

Retry guidance

Retry temporary failures with backoff. Do not retry invalid requests without changing the request.

For search UX, keep the previous stable result visible while a new request is running when possible.