Skip to content
Layers of the South
Search
Open Portal Standard v1.0.0Site Edition v2.1.2API Contract lts-read-operations/3Snapshot SHA-256 a97585a61f00…

000 Developers

Errors

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
curl --silent --show-error \
  --header 'Accept: application/json' \
  'https://layersofthesouth.org/api/v1/search?q=pattanam&limit=1000'

Response

HTTP/1.1 400 Bad Request
Content-Type: application/problem+json; charset=utf-8
Cache-Control: no-store
Access-Control-Allow-Origin: *
Link: </.well-known/api-catalog>; rel="api-catalog", </api/v1/openapi.json>; rel="service-desc", </developers/reference>; rel="service-doc", </api/v1/status>; rel="status", </schemas/developers/problem/1.json>; rel="describedby"; type="application/schema+json"
RateLimit-Policy: "instance-read";q=600;w=30
RateLimit: "instance-read";r=600;t=0
{
  "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.

CodeStatusMeaning and remedy
malformed_json400Malformed JSON. The request body is not valid JSON. Send one JSON object encoded as UTF-8. The detail names the position of the first error.
duplicate_json_key400Duplicate JSON key. An object in the request body repeats a key, so its meaning is ambiguous. Send each key once.
invalid_json_value400Invalid 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.
empty_body400Empty request body. The operation needs a JSON body and none was sent. Send the JSON object the operation's schema describes.
invalid_object400Not a JSON object. The body, or a member that must be an object, is another JSON type. Send a JSON object where the schema asks for one.
duplicate_query_parameter400Duplicate query parameter. A query parameter appears more than once. Send each query parameter once.
unknown_field400Unknown 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.
invalid_unicode400Invalid Unicode. A text value contains a lone UTF-16 surrogate. Send well-formed Unicode.
invalid_control_character400Control 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.

CodeStatusMeaning and remedy
invalid_parameter400Invalid parameter. A parameter or field does not meet the rule stated in the detail. Correct the value named in field and send the request again.
invalid_type400Wrong type. A parameter or field has the wrong JSON type. Send the type the schema states for field.
invalid_integer400Not an integer. A value that must be a whole number is not one. Send a base-10 integer.
invalid_enum400Value not in the allowed set. A value is not one of the options the operation accepts. Use one of the options listed in the detail.
out_of_range400Value 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.
max_length_exceeded400Text too long. A text value has more Unicode code points than its field allows. Shorten the value. The limits are published at /api/v1/capabilities.
empty_value400Empty value. A required text value is empty or only white space. Send a non-empty value for field.
missing_parameter400Missing query parameter. A required query parameter is absent. Add the parameter named in field.
missing_required_field400Missing 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_interval400Invalid 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.
invalid_sha256400Invalid SHA-256 digest. A digest is not 64 lowercase hexadecimal characters. Send the SHA-256 as 64 lowercase hexadecimal characters, with no prefix.
invalid_canonicalization400Unknown 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.
contradictory_alias400Two spellings disagree. The same parameter was sent under two accepted spellings with different values. Send one spelling of the parameter.
conflicting_claim_input400Claim 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.

CodeStatusMeaning and remedy
method_not_allowed405Method not allowed. The route exists but does not answer this HTTP method. Use one of the methods in the Allow header of the response.
not_acceptable406Not acceptable. The Accept header rules out the only media type this operation returns. Accept application/json, or omit the Accept header.
unsupported_media_type415Unsupported media type. The request body is not declared as application/json. Send the body with Content-Type: application/json.

Size limits

The request or the result is larger than a published limit.

CodeStatusMeaning and remedy
payload_too_large413Request 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.
package_limit_exceeded413Too 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_bytes_exceeded413Package 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.

CodeStatusMeaning and remedy
resource_budget_exceeded429Too 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.

CodeStatusMeaning and remedy
origin_not_allowed403Origin 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_unauthorized401Preview 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_configuration_error503 or 403Preview 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.

CodeStatusMeaning and remedy
invalid_snapshot_id400Invalid 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_found404Snapshot 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_expired410Snapshot 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.
snapshot_not_published404Snapshot not published. The snapshot exists but is not part of the approved public collection. Use a snapshot listed at /api/v1/releases.
snapshot_conflict409Conflicting 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_selectors409Conflicting 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.

CodeStatusMeaning and remedy
not_found404Not 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.
endpoint_not_found404No such endpoint. No operation of the HTTP API answers at this path. Read the list of operations at /api/v1/openapi.json, or start from /api/v1.
resource_not_found404Resource 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_found404Study 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.
site_not_found404Place not found. No maintained place record matches the name sent. Use one of the place identifiers named in the detail.
inscription_not_found404Inscription 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.
layer_not_found404Layer not found. The place is known but has no recorded layer with this name. Ask for the place alone to see the layers recorded for it.
unknown_claim_id404Unknown claim id. No curated claim has this id. Use one of the claim ids listed in the detail, or send the claim as text.
ambiguous_identifier409Ambiguous 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.

CodeStatusMeaning and remedy
invalid_cursor400Invalid 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_snapshot_mismatch409Cursor 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_filter_mismatch409Cursor 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.

CodeStatusMeaning and remedy
invalid_schema_version400Unknown saved-query schema. The saved query does not declare the schema version this service reads. Send schemaVersion: "saved-query/1".
unsupported_operation400Unsupported 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_version400Unsupported 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.
missing_replay_expectation400Replay 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.
missing_replay_input400Saved 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_expectation_mismatch409Replay 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.
artifact_metadata_mismatch409Stored 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.
artifact_bytes_unavailable404File 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.

CodeStatusMeaning and remedy
invalid_role_enum400Invalid message role. The message role is not the user role the agent endpoint accepts. Send role: "ROLE_USER".
invalid_part_structure400Outdated 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.
invalid_part_oneof400Message part needs one content member. A message part carries both text and data, or neither. Send exactly one of text or data in each part.
task_context_mismatch400Context 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.
invalid_task_state_enum400Invalid task state. The task list was filtered by a state name the protocol does not define. Use a task state name defined by the agent protocol.
invalid_page_token400Invalid page token. The page token of a task list is not one this service issued. List from the start and pass on each token exactly as received.
page_token_scope_mismatch400Page 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.
invalid_elicitation_choice400Choice not offered. The answer to a clarifying question is not one of the options that were offered. Answer with one of the options in the question.
invalid_task_filename400Invalid task file name. The name of a retained task file contains characters that are not allowed. Use a file name listed at /api/v1/a2a-packs.json.
invalid_task_path400Invalid task path. The path of a retained task file points outside the task directory. Use a file name listed at /api/v1/a2a-packs.json.
task_not_found404Task not found. No task has this id. List the tasks with ListTasks and use an id it returns.
task_not_cancelable409Task cannot be cancelled. The task has already finished. Nothing to cancel; read the task with GetTask.
push_notifications_not_supported400Push notifications not offered. The agent sends no push notifications. Leave out push configuration and read the reply to SendMessage.
operation_not_supported400Operation not offered. The agent does not offer this operation, such as streaming. Use SendMessage.
content_type_not_supported415Media 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.
extended_agent_card_not_configured400No extended agent card. The agent has only its public card. Read /.well-known/agent-card.json.
version_not_supported400A2A 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.
unknown_tool400Unknown tool. The tool endpoint has no tool by this name. Call tools/list and use a name it returns. Names from earlier editions are still accepted.
unknown_prompt400Unknown prompt. The tool endpoint has no prompt by this name. Call prompts/list and use a name it returns.
elicitation_unresolved400Clarification 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.

CodeStatusMeaning and remedy
internal_error500Internal 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.
error500Unclassified error. The service answered with an error it has not classified more precisely. Act on the HTTP status and the detail.
service_unavailable503Service 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_unavailable404Resource 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_integrity_error409Resource 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.
full_study_body_unavailable500Study 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.

CodeNameEndpointMeaningCarries a problem code
-32700Parse errormcp, a2aThe body is not valid JSON.No
-32600Invalid Requestmcp, a2aThe body is not a single JSON-RPC 2.0 request object, or a protocol requirement of the request is not met.No
-32601Method not foundmcp, a2aThe method is not one the endpoint implements.No
-32602Invalid paramsmcp, a2aThe parameters are malformed, or a catalogued problem occurred while validating them.Yes
-32603Internal errormcp, a2aThe service failed on a valid request.Yes
-32000Server errormcp, a2aA catalogued problem that is not a parameter fault, including the rate limit (HTTP 429 with Retry-After).Yes
-32002Resource not foundmcpNo resource has the URI that was asked for.Yes
-32020Header mismatchmcpA mirrored HTTP header is missing or disagrees with the request body.No
-32022Unsupported protocol versionmcpThe request names a protocol revision the server does not speak.No
-32001TaskNotFoundErrora2aNo task has the id that was asked for.Yes
-32002TaskNotCancelableErrora2aThe task has already finished and cannot be cancelled.Yes
-32003PushNotificationNotSupportedErrora2aThe agent sends no push notifications.Yes
-32004UnsupportedOperationErrora2aThe operation, such as streaming, is not offered by this agent.Yes
-32005ContentTypeNotSupportedErrora2aA message part or a requested output mode uses a media type the agent does not handle.Yes
-32007ExtendedAgentCardNotConfiguredErrora2aThe agent has no extended card.Yes
-32009VersionNotSupportedErrora2aThe A2A-Version header is missing or names a version the agent does not speak.Yes

This page as Markdown · All developer pages in one Markdown file