Every error is a problem document (RFC 9457) with a stable code. Its type is an address that explains the code and the way out. 85 codes, in 12 families.
001 Shape
What an error looks like
A recorded example. type resolves at /problems/{code} as Markdown or JSON; a browser is sent to the entry on this page.
Request
GET https://layersofthesouth.org/api/v1/search?q=pattanam&limit=1000
Accept: application/json
{
"type": "https://layersofthesouth.org/problems/out_of_range",
"title": "Value out of range",
"status": 400,
"detail": "Field 'limit' must be between 1 and 100 (got 1000).",
"instance": "/api/v1/search",
"code": "out_of_range",
"field": "limit"
}
Recorded from snapshot 8704bbb4a54e, an earlier release. This release answers with its own snapshot id.
002 Families
Problem types
The service returns these descriptions in English; they are quoted here as it returns them.
Request syntax
The request could not be read as sent. Fix its form and send it again.
Invalid JSON value. The body contains a value strict JSON does not allow, such as NaN, Infinity or a lone surrogate. Replace the value with a finite number or valid Unicode text.
Unknown field. The request names a query parameter or body field the operation does not define. Unknown names are refused so that a misspelt filter is never silently ignored. Remove the field named in field, or correct its spelling against the OpenAPI description.
Control character in text. A text value contains a control character that is not allowed. Remove control characters other than tab, line feed and carriage return.
Parameter values
The request was read, but a parameter or field holds a value the operation does not take.
Value out of range. A number is below the minimum or above the maximum for its field. Use a value inside the range in the detail. Every bound is published at /api/v1/capabilities.
Missing required field. A required field or argument is absent, or none of a set of alternatives was sent. Send the field, or one of the alternatives, named in the detail.
Invalid year interval. The start year of a range is later than its end year. Send a start year that is not later than the end year. Years before the common era are negative.
Unknown canonicalisation. The request names a digest scheme the service does not define. Use one of the digest schemes listed under digestSchemes at /api/v1/capabilities.
Claim text and claim id disagree. The free-text claim and the claim id in one request do not describe the same claim. Send the claim id or the text, or make the two agree.
Methods and media types
The method, the body's media type or the Accept header does not fit the route.
Request body too large. The request body is larger than the limit published as maxJsonBodyBytes. Send a smaller body. Read the limit at /api/v1/capabilities.
Too many studies for one package. An evidence package was asked for more studies than one package may hold. Ask for fewer studies per package, in several requests. The limit is evidencePackageMaxStudies at /api/v1/capabilities.
Package too large. The evidence package would exceed the size limit, so it was not built. Ask for fewer studies per package. The limit is evidencePackageMaxBytes at /api/v1/capabilities.
Rate limits
The serving instance asks the caller to slow down.
Too many requests. The serving instance has spent its request budget for the moment, or is already handling as many requests as it allows at once. The budget is per serving instance and approximate; no caller is identified or tracked. Wait the number of seconds in the Retry-After header, then retry with exponential backoff. RateLimit-Policy states the quota for this class of request.
Access and origin
Problems that arise only on the private preview. The public API needs no key, account or allowlisted origin.
Origin not allowed. The request came from a browser origin that the private preview does not list. The public API answers every origin. Call the public API, or use an origin the preview allows.
Preview authentication required. The deployment is a private preview and the request carries no valid preview credential. The public API needs no credential. Call the public API at the canonical origin, or send the preview credential.
Preview not configured. The deployment is neither an approved public release nor a correctly configured private preview, so it answers nothing. Call the public API at the canonical origin. Operators: complete the access configuration of this deployment.
Snapshot selection
The snapshot the request names is malformed, unknown, withdrawn or named twice with different values.
Invalid snapshot id. A snapshot selector is neither the word current nor 64 lowercase hexadecimal characters. Send current, or a snapshot id copied from /api/v1/releases.
Snapshot not found. No snapshot with this id is in service. List the snapshots in service at /api/v1/releases, or omit the selector to read the latest one.
Snapshot no longer served. The snapshot was published once and has since left the retention window. The id still names that edition; the service no longer serves it. Read the latest snapshot, or choose one listed at /api/v1/releases.
Conflicting snapshot selectors. The snapshot named in the URL path, or bound to a task id, differs from the one named elsewhere in the same request. Name the snapshot once, or make every selector agree.
Conflicting snapshot selectors. Two of the query parameter, the X-LTS-Snapshot header, the request body and a saved query name different snapshots. Name the snapshot once, or make every selector agree.
Records not found
The route exists, but the record, place or resource asked for does not, or more than one matches.
Not found. The record asked for does not exist in the selected snapshot. Check the identifier. /api/v1/search finds studies, and /api/v1/catalogue lists every one.
Resource not found. The document or resource named by the URL or URI does not exist. Check the name against the list that advertises it: /developers/errors lists the problem types, and resources/list on the tool endpoint lists its resources.
Study not found. No study has this id or route slug in the selected snapshot. Find the study with /api/v1/search, or list every id at /api/v1/catalogue.
Inscription not found. No recorded inscription matches the text, term or identifier sent. Search with another spelling or with the identifier of a recorded inscription. No match is not evidence about the inscription itself.
Ambiguous identifier. The identifier matches more than one study, and the service will not choose between them. Pick one entry from candidates in the response and repeat the request with its id.
Pagination
A cursor does not belong to the query or snapshot it was sent with.
Invalid cursor. The cursor is not one this service issued, or it is damaged. Start again from the first page and pass on each nextCursor exactly as received.
Cursor belongs to another snapshot. The cursor was issued for a different snapshot from the one this request reads, usually because a new edition was published during the walk. Start again from the first page. To keep one walk on one snapshot, send snapshot=<id> on every page.
Cursor belongs to another query. The query or its filters changed between pages. A cursor is bound to the query that produced it. Start again from the first page with the new filters.
Saved queries, replay and packages
A structured read, a saved query or an evidence package could not be accepted or verified.
Unsupported read operation. The structured read names an operation that does not exist. Only the published read operations can be run. Use one of the operations the structured-read schema lists.
Unsupported operation version. The structured read names a version of the operation set this service does not run. Send the operation version the structured-read schema states.
Replay needs an expected digest. A replay was requested without the digest of the result it expects, so there is nothing to verify. Include expectedResultSha256, as written into the saved query when it was exported.
Saved query outside the package. The saved query reads a study that is not among the studies of the package being built. Add the study to studyIds, or leave the saved query out.
Replay result differs. The result computed from the selected snapshot does not have the digest the saved query expects: the data or the query has changed. Replay against the snapshot the query was saved from, or compare the two editions at /api/v1/releases/compare.
Stored text fails its digest. The stored text of a study does not match the digest recorded for the selected snapshot, so the package was not built. Retry later or choose another snapshot. The service does not ship text it cannot verify.
File bytes not held. Byte-for-byte verification was asked for a file whose exact bytes the function does not hold for the selected release. Download the file and compare its SHA-256 with the published checksum yourself.
Agent messages and tasks
A message, task reference or mirrored file request on the agent endpoints is malformed.
Outdated message part. A message part uses a wrapper from an earlier revision of the agent protocol. Send each part as an object with exactly one of text or data.
Context does not match the task. The context id sent with a task reference is not the context that task belongs to. Send the context id returned with the task, or leave it out.
Page token belongs to another list. The page token was issued for a different release or a different filter. List from the start with the current filter.
Media type not handled. A message part, or every accepted output mode, uses a media type the agent does not handle. Send text or JSON parts and accept application/json or text/plain.
A2A version not supported. The A2A-Version header is missing (read as 0.3) or names a version the agent does not speak. Send the header A2A-Version: 1.0.
Clarification not resolved. The answers to the clarifying questions still do not identify one record after the permitted attempts. Send the request again with an exact identifier, such as a study id from /api/v1/search.
Server and integrity
The service could not complete a valid request, or refused to answer with data it could not verify.
Internal error. The service failed while handling a request it could not fault. Nothing about the request is recorded. Retry once. If it fails again, ask for less in one request: a smaller page or fewer studies.
Service unavailable. The function is running but has no snapshot it can serve. Retry after a short wait. /api/v1/status reports the state of the service.
Resource unavailable. The resource is not one the selected release advertises, or its content is missing from that release. Choose a resource the release lists, or read the latest snapshot.
Resource failed verification. A release resource did not match the manifest of the selected release, so it was not served. Retry later or choose another snapshot. The service does not serve data it cannot verify.
Study text unavailable. The full text of a study is not available to the function, and it will not substitute a summary for it. Retry later. The study's Markdown twin at /read/<slug>/index.md carries the same text.
003 JSON-RPC
Errors on the agent endpoints
The MCP and A2A endpoints answer in JSON-RPC 2.0. Where an error wraps a problem type, its code is in error.data.code on MCP and error.data[0].code on A2A.
Code
Name
Endpoint
Meaning
Carries a problem code
-32700
Parse error
mcp, a2a
The body is not valid JSON.
No
-32600
Invalid Request
mcp, a2a
The body is not a single JSON-RPC 2.0 request object, or a protocol requirement of the request is not met.
No
-32601
Method not found
mcp, a2a
The method is not one the endpoint implements.
No
-32602
Invalid params
mcp, a2a
The parameters are malformed, or a catalogued problem occurred while validating them.
Yes
-32603
Internal error
mcp, a2a
The service failed on a valid request.
Yes
-32000
Server error
mcp, a2a
A catalogued problem that is not a parameter fault, including the rate limit (HTTP 429 with Retry-After).
Yes
-32002
Resource not found
mcp
No resource has the URI that was asked for.
Yes
-32020
Header mismatch
mcp
A mirrored HTTP header is missing or disagrees with the request body.
No
-32022
Unsupported protocol version
mcp
The request names a protocol revision the server does not speak.
No
-32001
TaskNotFoundError
a2a
No task has the id that was asked for.
Yes
-32002
TaskNotCancelableError
a2a
The task has already finished and cannot be cancelled.
Yes
-32003
PushNotificationNotSupportedError
a2a
The agent sends no push notifications.
Yes
-32004
UnsupportedOperationError
a2a
The operation, such as streaming, is not offered by this agent.
Yes
-32005
ContentTypeNotSupportedError
a2a
A message part or a requested output mode uses a media type the agent does not handle.
Yes
-32007
ExtendedAgentCardNotConfiguredError
a2a
The agent has no extended card.
Yes
-32009
VersionNotSupportedError
a2a
The A2A-Version header is missing or names a version the agent does not speak.
Yes
RunSendingCopyCopiedStatusTimeSizeHeadersBodyThe request did not complete. The service may be busy or unreachable from this network.Not sent. The first line must be a method and an address.Not sent. This page sends requests to its own site only.Not sent. A header line needs a valid name, a colon and a value.Not sent. A GET or HEAD request cannot carry a body.As receivedIndented