# CRUD API HTTP Protocol

Version: 0.2.0 · Status: draft · License: Apache-2.0

Source: lingodata/crud@bc225ba

## 1. Overview

This Protocol specification maps the [CRUD API Base Specification](./base.md#1-overview) and its extensions to HTTP ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110)). It is part of the **LingoData** family.

| Concept | HTTP |
|---|---|
| Operations | methods on URL paths ([section 2](#2-endpoints)) |
| Search Queries and Parameters | query string, following UnQuery, and the `QUERY` method body ([section 3](#3-query-string)) |
| Metadata and content negotiation | header fields ([section 4](#4-headers-and-metadata)) |
| Errors | status codes and Problem Details bodies ([section 5](#5-errors)) |
| Asynchronous operations | `202`, operation URLs, Server-Sent Events and Standard Webhooks callbacks ([section 6](#6-asynchronous-operations)) |
| Schemas | the `/@schema` Collection, `describedby` links and `application/schema+json` ([section 7](#7-schemas)) |

### 1.1 Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 ([RFC 2119](https://www.rfc-editor.org/rfc/rfc2119), [RFC 8174](https://www.rfc-editor.org/rfc/rfc8174)) when, and only when, they appear in all capitals, as shown here.

### 1.2 Supported specifications

<a id="HTTP_SPEC_RANGES"></a>**Rule `HTTP_SPEC_RANGES`**: MUST

This specification supports the Base Specification `^0.2.0` and the extensions Asynchronous operations `^0.1.0`, Metadata `^0.1.0`, Relationships `^0.1.0` and Views `^0.1.0`.

<a id="HTTP_EXTENSION_SECTIONS"></a>**Rule `HTTP_EXTENSION_SECTIONS`**: MUST

Rules that map an extension apply only to Servers that support that extension, and are marked as such. A Server that does not support an extension MUST ignore the rules that map it.

| Rules | Extension |
|---|---|
| `listByView` endpoint, View management and View parameters (sections 2, 2.5 and 3.3) | Views |
| `@expand` ([section 3.1](#31-control-parameters)) | Relationships |
| `ETag`, `Last-Modified`, `If-Match`, `If-None-Match` ([section 4.6](#46-resource-metadata)) | Metadata |
| [Section 6](#6-asynchronous-operations) | Asynchronous operations |

## 2. Endpoints

Each operation of the Base Specification and of the extensions is an HTTP method on a URL path, relative to the base URL of the API.

| Operation | Method and path | Specification |
|---|---|---|
| `get` | `GET /:collection/:id` | Base |
| `list` | `GET /:collection`, or `QUERY /:collection` | Base |
| `create` | `POST /:collection` | Base |
| `clone` | `POST /:collection/:id/clone` | Base |
| `patchById` | `PATCH /:collection/:id` | Base |
| `patchByQuery` | `PATCH /:collection` | Base |
| `replaceById` | `PUT /:collection/:id` | Base |
| `replaceByQuery` | `PUT /:collection` | Base |
| `deleteById` | `DELETE /:collection/:id` | Base |
| `deleteByQuery` | `DELETE /:collection` | Base |
| `listByView` | `GET /:collection/:view`, or `QUERY /:collection/:view` | Views (extension) |

<a id="HTTP_ENDPOINTS"></a>**Rule `HTTP_ENDPOINTS`**: MUST

Servers MUST expose each operation they support with the method and path in the table above, where `:collection` is the Collection Slug, `:id` the Resource ID and `:view` the View name.

> **Note (non-normative)**
>
> Discovering which Collections an API exposes is defined by the Schema extension (`GET /@schema`, [section 7](#7-schemas)).

### 2.1 Paths

<a id="HTTP_PATH_ID_ENCODING"></a>**Rule `HTTP_PATH_ID_ENCODING`**: MUST

The `:id` segment MUST be percent-encoded as required by [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986). Composite Resource IDs ([Base `ID_COMP_KEY_URLENCODED`](./base.md#ID_COMP_KEY_URLENCODED)) are encoded as a whole in the segment.

> **Tip (non-normative): Example**
>
> The composite Resource ID `store=12&number=345` is addressed as `GET /orders/store%3D12%26number%3D345`. A `list` with the same Fields as conditions, `GET /orders?store=12&number=345`, matches the same Resource, but returns a list (with zero or one Resource) and never fails with `404`.

<a id="HTTP_PATH_VIEW_PRECEDENCE"></a>**Rule `HTTP_PATH_VIEW_PRECEDENCE`**: MUST

For `GET /:collection/:segment` and `QUERY /:collection/:segment`, when the Views extension is supported and a View named `:segment` exists in the Collection, the Server MUST execute the View; otherwise, `:segment` MUST be interpreted as a Resource ID.

> **Note (non-normative)**
>
> View names and Resource IDs of the same Collection never collide ([Views `VIEW_ID_CONFLICT`](./views.md#VIEW_ID_CONFLICT)).

<a id="HTTP_PATH_RESERVED"></a>**Rule `HTTP_PATH_RESERVED`**: MUST

Path segments starting with `@` right after `/:collection` (for example `/:collection/@views`) are reserved for extensions, to expose resources about the Collection itself, and MUST NOT be interpreted as Resource IDs or View names.

> **Note (non-normative)**
>
> Resource IDs are Slugs ([Base `ID_SLUG`](./base.md#ID_SLUG)) and never start with `@`. Extensions use this space for their own resources, such as the management of Views (`/:collection/@views`) and of schemas (`/:collection/@schema`, [section 7](#7-schemas)), and, in the future, user interfaces (`/:collection/@ui`).

### 2.2 The `QUERY` method

<a id="HTTP_QUERY_METHOD"></a>**Rule `HTTP_QUERY_METHOD`**: MAY

Servers MAY support the `QUERY` method ([RFC 10008](https://www.rfc-editor.org/rfc/rfc10008)) for `list` and `listByView`, with the Search Query in the request body, labeled with its media type (such as `application/vnd.unquery+json` or `text/vnd.unquery.sql`). Conditions in the query string, if any, are combined with the body with `and`.

> **Note (non-normative)**
>
> `QUERY` is safe and idempotent, like `GET`, and carries the Search Query in the body, which avoids URL length limits.

### 2.3 Writes on several Resources

<a id="HTTP_BYQUERY_FILTER_REQUIRED"></a>**Rule `HTTP_BYQUERY_FILTER_REQUIRED`**: MUST

`PATCH`, `PUT` and `DELETE` on `/:collection` without any condition MUST fail with the [`INVALID_INPUT`](./base.md#INVALID_INPUT) error. To affect every Resource of the Collection, the Client MUST send the empty filter `@q={}` explicitly.

> **Note (non-normative): Rationale**
>
> `DELETE /orders` without a filter would delete every order. Requiring an explicit empty filter makes that intent visible in the request.

### 2.4 The `clone` operation

<a id="HTTP_CLONE"></a>**Rule `HTTP_CLONE`**: MUST

`POST /:collection/:id/clone` MAY carry a patch in the body, as a JSON Patch ([RFC 6902](https://www.rfc-editor.org/rfc/rfc6902), `application/json-patch+json`) or a JSON Merge Patch ([RFC 7396](https://www.rfc-editor.org/rfc/rfc7396), `application/merge-patch+json`), and MUST respond with `201 Created` and a `Location` header with the URL of the copy.

### 2.5 Managing Views

> **Caution (non-normative): Requires the Views extension**
>
> This section applies only to Servers that support the [Views extension](./views.md#1-views) (`views ^0.1.0`).

The `@views` Collection of each Collection ([Views `VIEW_COLLECTION`](./views.md#VIEW_COLLECTION)) uses the endpoints of [section 2](#2-endpoints) under `/:collection/@views`, with the View name as the Resource ID.

| Operation | Method and path |
|---|---|
| `list` | `GET /:collection/@views` |
| `get` | `GET /:collection/@views/:view` |
| `create` | `POST /:collection/@views` |
| `clone` | `POST /:collection/@views/:view/clone` |
| `patchById`, `patchByQuery` | `PATCH /:collection/@views/:view`, `PATCH /:collection/@views` |
| `replaceById`, `replaceByQuery` | `PUT /:collection/@views/:view`, `PUT /:collection/@views` |
| `deleteById`, `deleteByQuery` | `DELETE /:collection/@views/:view`, `DELETE /:collection/@views` |

<a id="HTTP_VIEWS_ENDPOINTS"></a>**Rule `HTTP_VIEWS_ENDPOINTS`**: MUST

Servers MUST expose the operations on Views they support with the method and path in the table above.

> **Tip (non-normative): Example: listing the Views of a Collection**
>
> ```http
> GET /orders/@views?@fields=_id,description
> ```

<a id="HTTP_VIEW_DESCRIBEDBY"></a>**Rule `HTTP_VIEW_DESCRIBEDBY`**: SHOULD

Responses of `listByView` for a View with a `schema` ([Views `VIEW_SCHEMA`](./views.md#VIEW_SCHEMA)) SHOULD include a `Link` header field with the `describedby` relation to `/:collection/@views/:view`.

> **Tip (non-normative): Example: executing a View and its describedby link**
>
> ```http
> GET /orders/sales-by-month?year=2026
>
> HTTP/1.1 200 OK
> Link: </orders/@views/sales-by-month>; rel="describedby"
> ```

<a id="HTTP_VIEW_SCHEMA_RAW"></a>**Rule `HTTP_VIEW_SCHEMA_RAW`**: MUST

`GET /:collection/@views/:view` with `Accept: application/schema+json` MUST respond with only the value of the `schema` Field of the View, compiled as specified by ESType ([ESType section 2](../estype.md#2-compilation)), labeled `application/schema+json`. When the View has no `schema`, the Server MUST fail with the [`NOT_FOUND`](./base.md#NOT_FOUND) error, with target `schema`.

> **Tip (non-normative): Example: reading only the schema of a View**
>
> ```http
> GET /orders/@views/sales-by-month
> Accept: application/schema+json
>
> HTTP/1.1 200 OK
> Content-Type: application/schema+json
>
> { "type": "object", "properties": { "month": { "type": "string" } } }
> ```

## 3. Query string

The query string carries the Search Query and the Parameters of an operation. It follows the query string mapping of [UnQuery](https://github.com/lingodata/unquery) ([UnQuery section 4](../unquery.md#4-query-string-mapping)): keys starting with `@` are control parameters, and other keys are conditions on Fields.

### 3.1 Control parameters

<a id="HTTP_CONTROL_PARAMS"></a>**Rule `HTTP_CONTROL_PARAMS`**: MUST

Servers MUST accept the Parameters they support with the control parameter names and values in the table below.

| Parameter | Value | Implements |
|---|---|---|
| `@q` | a complete UnQuery filter, in JSON or SQL syntax | [Base `SEARCH_QUERY_UNQUERY`](./base.md#SEARCH_QUERY_UNQUERY) |
| `@fields` | a field list ([Base section 3.3.1](./base.md#331-field-lists)) | [Base `PROJECTION_FIELD_LIST`](./base.md#PROJECTION_FIELD_LIST) |
| `@sort` | a field list | [Base `SORTING_FIELD_LIST`](./base.md#SORTING_FIELD_LIST) |
| `@page`, `@limit` | integers, `@page` from 1 and `@limit` from 1 | [Base `PAGINATION_PAGE`](./base.md#PAGINATION_PAGE) |
| `@offset` | integer from 0 | [Base `PAGINATION_OFFSET`](./base.md#PAGINATION_OFFSET) |
| `@cursor` | the opaque cursor of the next page | [Base `PAGINATION_CURSOR`](./base.md#PAGINATION_CURSOR) |
| `@expand` | a field list of relationship Fields | [Relationships `REL_EXPAND`](./relationships.md#REL_EXPAND) (requires the Relationships extension) |
| `@derive` | `true` or `false` | [Schema `SCHEMA_DERIVE`](./schema.md#SCHEMA_DERIVE) (requires the Schema extension, [section 7](#7-schemas)) |

<a id="HTTP_PARAM_VALUES"></a>**Rule `HTTP_PARAM_VALUES`**: MUST

Integers MUST be written in decimal and booleans as `true` or `false`. An invalid value MUST fail with the [`INVALID_INPUT`](./base.md#INVALID_INPUT) error.

Preconditions, such as the expected match count and the denial of upserts, are header fields ([section 4.8](#48-preconditions)).

> **Tip (non-normative): Example**
>
> `GET /orders?status=paid&total=>100&@sort=-createdAt&@fields=_id,total&@page=2&@limit=20`

### 3.2 Custom parameters

<a id="HTTP_CUSTOM_PARAMS"></a>**Rule `HTTP_CUSTOM_PARAMS`**: MUST

Custom Parameters ([Base section 3.3.3](./base.md#333-custom-parameters)) MUST be written as `@` followed by their name, and their names MUST NOT be equal to the control parameters of this specification.

<a id="HTTP_UNKNOWN_CONTROL"></a>**Rule `HTTP_UNKNOWN_CONTROL`**: MUST

A key starting with `@` that is neither a control parameter nor a Custom Parameter of the Server MUST be ignored and reported as a [`PARAM_IGNORED`](./base.md#PARAM_IGNORED) Warning ([Base `PARAM_CUSTOM_UNKNOWN`](./base.md#PARAM_CUSTOM_UNKNOWN)); with the strict preference, the operation fails.

> **Note (non-normative)**
>
> This is the handling that [UnQuery `QS_CONTROL_UNKNOWN`](../unquery.md#QS_CONTROL_UNKNOWN) leaves to the protocol. Custom Parameters keep the `@` prefix so that Servers can tell unknown ones apart from conditions and report them.

### 3.3 View parameters

> **Caution (non-normative): Requires the Views extension**
>
> This section applies only to Servers that support the [Views extension](./views.md#1-views) (`views ^0.1.0`).

<a id="HTTP_VIEW_PARAMS"></a>**Rule `HTTP_VIEW_PARAMS`**: MUST

In [`listByView`](./views.md#14-execution-operation-listbyview), keys equal to a parameter declared by the View ([Views `VIEW_PARAMS`](./views.md#VIEW_PARAMS)) MUST be interpreted as View parameters, without a prefix, and excluded from filtering ([UnQuery `QS_IGNORE_LIST`](../unquery.md#QS_IGNORE_LIST)). Every other key follows [section 3.1](#31-control-parameters) and UnQuery.

<a id="HTTP_VIEW_PARAM_VALUES"></a>**Rule `HTTP_VIEW_PARAM_VALUES`**: MUST

View parameter values MUST be read from the query string as UnQuery values ([UnQuery section 4](../unquery.md#4-query-string-mapping)) and then converted with the `params` schema of the View ([Views `VIEW_PARAMS_CONVERT`](./views.md#VIEW_PARAMS_CONVERT)).

> **Tip (non-normative): Example**
>
> `GET /orders/sales-by-month?year=2026&month=11&status=paid` runs the View `sales-by-month` with the parameters `year` and `month`, filtered by `status`.

> **Note (non-normative)**
>
> A declared View parameter takes precedence over a Field with the same name, as a View name takes precedence over a Resource ID ([section 2.1](#21-paths)). To filter by such a Field, use `@q`, for example `@q={"year":2025}`.

### 3.4 Conditions on single Resources

<a id="HTTP_CONDITIONS_BY_ID"></a>**Rule `HTTP_CONDITIONS_BY_ID`**: MUST

Conditions in the query string of endpoints on a single Resource (`/:collection/:id`) MUST be ignored and reported as a [`CONDITION_IGNORED`](#CONDITION_IGNORED) Warning, with the key in `parameter`; with the strict preference, the operation fails.

> **Note (non-normative)**
>
> <a id="CONDITION_IGNORED"></a>`CONDITION_IGNORED` is a Warning code of this specification ([Base `WARN_EXTENSION_CODES`](./base.md#WARN_EXTENSION_CODES)). It differs from [`PARAM_IGNORED`](./base.md#PARAM_IGNORED): the ignored key is a condition on a Field, such as a tracking parameter, not an unknown control parameter.

> **Note (non-normative): Rationale**
>
> Single-Resource operations have no Search Query, so conditions there are usually unrelated keys, such as tracking parameters (`utm_source`). Ignoring them keeps links working; the Warning lets Clients notice mistakes.

## 4. Headers and metadata

Operation Metadata ([Base section 3.4](./base.md#34-metadata)) is carried in HTTP header fields. New header fields defined by this specification have no `X-` prefix ([RFC 6648](https://www.rfc-editor.org/rfc/rfc6648)) and, when structured, use Structured Field Values ([RFC 9651](https://www.rfc-editor.org/rfc/rfc9651)).

### 4.1 Content negotiation

<a id="HTTP_ACCEPT"></a>**Rule `HTTP_ACCEPT`**: SHOULD

Clients SHOULD send the `Accept` header field with the Resource Representations they accept (`application/vnd.ecson+json`, `application/json`). Servers MUST respond with a matching `Content-Type`, chosen as specified in [section 4.1.1](#411-choosing-the-resource-representation), or fail with the [`NEGOTIATION`](./base.md#NEGOTIATION) error.

<a id="HTTP_PLAIN_JSON"></a>**Rule `HTTP_PLAIN_JSON`**: MUST

`application/json` MUST be treated as the plain JSON Resource Representation ([Base `REPR_PLAIN_JSON`](./base.md#REPR_PLAIN_JSON)), and `application/vnd.ecson+json` as ECSON, both in responses and in request bodies.

<a id="HTTP_CONTENT_TYPE"></a>**Rule `HTTP_CONTENT_TYPE`**: MUST

Request bodies MUST be labeled with `Content-Type`: a Resource Representation for Resources, `application/json-patch+json` or `application/merge-patch+json` for patches, and an UnQuery media type for Search Queries in `QUERY` requests.

<a id="HTTP_ACCEPT_QUERY"></a>**Rule `HTTP_ACCEPT_QUERY`**: SHOULD

Servers that support the `QUERY` method SHOULD advertise the Search Query formats they accept in the `Accept-Query` response header field ([RFC 10008](https://www.rfc-editor.org/rfc/rfc10008)).

<a id="HTTP_PREFER"></a>**Rule `HTTP_PREFER`**: MUST

The return preference ([Base `META_PREFER_REPRESENTATION`](./base.md#META_PREFER_REPRESENTATION)) MUST be sent as `Prefer: return=representation` or `Prefer: return=minimal`, and the strict preference ([Base `META_WARN_PREFERENCE`](./base.md#META_WARN_PREFERENCE)) as `Prefer: handling=strict` (with `handling=lenient` as the default), as defined by [RFC 7240](https://www.rfc-editor.org/rfc/rfc7240).

<a id="HTTP_PREFER_ALLOW"></a>**Rule `HTTP_PREFER_ALLOW`**: MUST

The Warning codes that remain Warnings under the strict preference ([Base `META_WARN_PREFERENCE_EXCEPT`](./base.md#META_WARN_PREFERENCE_EXCEPT)) MUST be sent as the `allow` parameter of `handling=strict`, as a quoted string of codes separated by spaces.

> **Tip (non-normative): Example**
>
> ```http
> Prefer: handling=strict; allow="LIMIT_REDUCED ORDER_NOT_PRESERVED"
> ```

> **Note (non-normative)**
>
> RFC 7240 lets preferences carry parameters, and Servers ignore what they do not recognize. A Server that does not know the `allow` parameter applies `handling=strict` to every Warning, which fails more operations, never fewer.

<a id="HTTP_PREFERENCE_APPLIED"></a>**Rule `HTTP_PREFERENCE_APPLIED`**: SHOULD

Servers SHOULD report the preferences they applied in the `Preference-Applied` response header field.

#### 4.1.1 Choosing the Resource Representation

The `Accept` header field decides between ECSON (`application/vnd.ecson+json`) and plain JSON (`application/json`) in responses. ECSON is the default: plain JSON is sent only when the Client asks for it explicitly.

<a id="HTTP_ACCEPT_WEIGHT"></a>**Rule `HTTP_ACCEPT_WEIGHT`**: MUST

The Server MUST give ECSON and plain JSON the weight (`q`) of the most specific media range of `Accept` that matches each of them ([RFC 9110, section 12.5.1](https://www.rfc-editor.org/rfc/rfc9110#section-12.5.1)), where `*/*` and `application/*` match both. A Representation that no media range matches, or whose weight is `0`, is not accepted.

<a id="HTTP_ACCEPT_ECSON_DEFAULT"></a>**Rule `HTTP_ACCEPT_ECSON_DEFAULT`**: MUST

The Server MUST respond in ECSON, if it supports ECSON, when there is no `Accept` header field, when `Accept` has only wildcard media ranges (`*/*`, `application/*`), and when ECSON and plain JSON have the same weight ([Base `META_RES_FALLBACK`](./base.md#META_RES_FALLBACK) and [`META_RES_TIE`](./base.md#META_RES_TIE)).

<a id="HTTP_ACCEPT_PLAIN_JSON"></a>**Rule `HTTP_ACCEPT_PLAIN_JSON`**: MUST

The Server MUST respond in plain JSON only when ECSON is not accepted, or when plain JSON has a higher weight than ECSON.

| `Accept` sent by the Client | Response `Content-Type` | Why |
|---|---|---|
| (none) | `application/vnd.ecson+json` | no declaration |
| `*/*` (default of curl and of `fetch`) | `application/vnd.ecson+json` | only wildcards |
| `application/json, text/plain, */*` (default of [axios](https://axios-http.com/docs/req_config)) | `application/vnd.ecson+json` | same weight: `*/*` also accepts ECSON |
| `application/json` | `application/json` | ECSON is not accepted |
| `application/json, */*;q=0.8` | `application/json` | plain JSON has the higher weight |
| `application/json, application/vnd.ecson+json;q=0` | `application/json` | ECSON is refused |
| `application/vnd.ecson+json` | `application/vnd.ecson+json` | explicit |

> **Caution (non-normative): Clients that need plain JSON**
>
> Most HTTP clients send `*/*` by default, alone or beside `application/json`, and receive ECSON. A Client that needs plain values MUST send `Accept: application/json` without wildcards, or give ECSON a lower weight, as in the table above. ECSON responses are valid JSON ([RFC 8259](https://www.rfc-editor.org/rfc/rfc8259)) with the `+json` suffix ([RFC 6839](https://www.rfc-editor.org/rfc/rfc6839)), so generic JSON parsers read them; only typed values look different, such as `{ "$date": "2026-11-06T12:00:00.000Z" }` instead of `"2026-11-06T12:00:00.000Z"`.

<a id="HTTP_VARY_ACCEPT"></a>**Rule `HTTP_VARY_ACCEPT`**: SHOULD

Responses whose Representation depends on `Accept` SHOULD include `Vary: Accept` ([RFC 9110, section 12.5.5](https://www.rfc-editor.org/rfc/rfc9110#section-12.5.5)), so that caches do not serve an ECSON response to a plain JSON Client.

> **Caution (non-normative): Request bodies**
>
> `Accept` only chooses the response. The request body is read according to its own `Content-Type` ([`HTTP_PLAIN_JSON`](#HTTP_PLAIN_JSON)): a body labeled `application/json` is plain JSON, and objects such as `{ "$date": "..." }` in it are plain objects, not dates, except in Fields with `estype` ([Schema `SCHEMA_VALUE_CONVERSION`](./schema.md#SCHEMA_VALUE_CONVERSION), [ESType `CONVERT_FORM_PER_FIELD`](../estype.md#CONVERT_FORM_PER_FIELD)). Many clients label every JSON body `application/json` (for example, [axios](https://github.com/axios/axios) does so for objects). A Client that sends typed values MUST label the body `application/vnd.ecson+json`.

### 4.2 Specification versions

<a id="HTTP_CRUD_SPECS"></a>**Rule `HTTP_CRUD_SPECS`**: MUST

Servers MUST send the `CRUD-Specs` response header field, a Structured Field Dictionary whose keys are specification names and whose values are Strings with the version ([Base `META_CRUD_SPECS`](./base.md#META_CRUD_SPECS)).

<a id="HTTP_CRUD_REQUIRE"></a>**Rule `HTTP_CRUD_REQUIRE`**: MAY

Clients MAY send the `CRUD-Require` request header field, a Structured Field Dictionary whose keys are specification names and whose values are Strings with node-semver ranges ([Base `META_CRUD_REQUIRE`](./base.md#META_CRUD_REQUIRE)).

> **Tip (non-normative): Example**
>
> ```http
> CRUD-Require: base="^0.2.0", async="~0.1.0"
>
> CRUD-Specs: base="0.2.0", async="0.1.0", relationships="0.1.0"
> ```

### 4.3 Counts

<a id="HTTP_COUNTS"></a>**Rule `HTTP_COUNTS`**: SHOULD

The Matched Count and the Modified Count ([Base `META_MATCHED_COUNT`](./base.md#META_MATCHED_COUNT) and [`META_MODIFIED_COUNT`](./base.md#META_MODIFIED_COUNT)) SHOULD be sent in the `Matched-Count` and `Modified-Count` response header fields, as decimal integers.

### 4.4 Pagination links

<a id="HTTP_PAGINATION_LINKS"></a>**Rule `HTTP_PAGINATION_LINKS`**: SHOULD

Paginated responses SHOULD include a `Link` header field ([RFC 8288](https://www.rfc-editor.org/rfc/rfc8288)) with the URLs of the `next` and `prev` pages and, when known, the `first` and `last` pages. With cursor pagination, the `next` link MUST carry the cursor of the next page ([Base `PAGINATION_CURSOR`](./base.md#PAGINATION_CURSOR)), and its absence means there is no next page.

> **Tip (non-normative): Example**
>
> ```http
> Link: </orders?status=paid&@page=3&@limit=20>; rel="next", </orders?status=paid&@page=1&@limit=20>; rel="prev"
> ```

### 4.5 Written Resources

<a id="HTTP_LOCATION"></a>**Rule `HTTP_LOCATION`**: MUST

When a write operation targets a single Resource, the Server MUST send its URL in `Content-Location` when the response carries the Resource (`return=representation`), and in `Location` otherwise.

### 4.6 Resource metadata

> **Caution (non-normative): Requires the Metadata extension**
>
> This section applies only to Servers that support the [Metadata extension](./metadata.md#1-resource-metadata) (`metadata ^0.1.0`).

When the Metadata extension is supported, Resource metadata is also mirrored in standard header fields for operations on a single Resource ([Metadata `META_PROTOCOL_MIRROR`](./metadata.md#META_PROTOCOL_MIRROR)).

<a id="HTTP_META_ETAG"></a>**Rule `HTTP_META_ETAG`**: SHOULD

The `ETag` response header field SHOULD be the strong entity tag of `_meta.hash`, and `Last-Modified` the timestamp of the `updated` event (or of `created`, before any update).

<a id="HTTP_META_IF_MATCH"></a>**Rule `HTTP_META_IF_MATCH`**: SHOULD

Servers SHOULD support `If-Match` on write operations as the expected hash ([Metadata `META_DOC_CONDITIONAL`](./metadata.md#META_DOC_CONDITIONAL)), failing with `412 Precondition Failed` ([`PRECONDITION_FAILED`](./metadata.md#PRECONDITION_FAILED)) when it does not match.

<a id="HTTP_META_IF_NONE_MATCH"></a>**Rule `HTTP_META_IF_NONE_MATCH`**: MAY

Servers MAY support `If-None-Match` on `GET /:collection/:id`, responding `304 Not Modified` without a body when the hash matches.

### 4.7 Correlation and Warnings

#### 4.7.1 Correlation ID

<a id="HTTP_CORRELATION_ID"></a>**Rule `HTTP_CORRELATION_ID`**: SHOULD

The Correlation ID ([Base `META_CORRELATION_ID`](./base.md#META_CORRELATION_ID)) SHOULD be sent in the `Correlation-ID` header field, in `uuid-hex` format, by Clients in requests and by Servers in responses.

<a id="HTTP_TRACEPARENT"></a>**Rule `HTTP_TRACEPARENT`**: SHOULD

Servers SHOULD accept and propagate the `traceparent` header field of [W3C Trace Context](https://www.w3.org/TR/trace-context/). When a request has `traceparent` and no `Correlation-ID`, the Correlation ID MUST be its `trace-id`, formatted as `uuid-hex`. When both are present and differ, `Correlation-ID` prevails.

> **Tip (non-normative): Example**
>
> The Correlation ID `0190a5f2-7c3e-7b1a-9f4e-2d8c6b1e4a90` and the trace ID in `traceparent: 00-0190a5f27c3e7b1a9f4e2d8c6b1e4a90-00f067aa0ba902b7-01` are the same 16 bytes, so CRUD operations appear in tracing tools without any mapping.

#### 4.7.2 Warnings

<a id="HTTP_WARNING"></a>**Rule `HTTP_WARNING`**: MUST

Warnings ([Base `META_WARN`](./base.md#META_WARN)) MUST be sent in the `Warning` response header field as a Structured Field List of Strings, each String being a Warning code with a `message` parameter. Several Warnings MAY be sent in one field value, separated by commas, or in several `Warning` field lines, which are equivalent.

<a id="HTTP_WARNING_DATA"></a>**Rule `HTTP_WARNING_DATA`**: MUST

The other members of a Warning ([Base `WARN_DATA`](./base.md#WARN_DATA)), such as `parameter`, `field`, `id` and `error`, MUST be sent as parameters of its item, with String values.

> **Tip (non-normative): Example**
>
> ```http
> Warning: "PARAM_IGNORED";message="Unknown parameter @srot";parameter="@srot", "LIMIT_REDUCED";message="limit reduced to 100";parameter="@limit"
> ```

> **Caution (non-normative): Compatibility**
>
> This specification redefines the `Warning` header field, which [RFC 9111](https://www.rfc-editor.org/rfc/rfc9111#section-5.5) obsoleted for HTTP caching, with a different syntax (`299 - "text"`). Old caches and intermediaries may still process or remove it.

### 4.8 Preconditions

Preconditions make a write operation fail, without writing, when the current state is not the one the Client expects. They are header fields, as HTTP conditional requests are, and fail with `412 Precondition Failed`.

<a id="HTTP_EXPECT_MATCH"></a>**Rule `HTTP_EXPECT_MATCH`**: MUST

The expected match count ([Base `PARAM_EXPECT_MATCH`](./base.md#PARAM_EXPECT_MATCH)) MUST be sent in the `Expect-Match` request header field, as a decimal integer. When it does not match, the Server MUST respond `412 Precondition Failed` with the [`EXPECT_MISMATCH`](./base.md#EXPECT_MISMATCH) code.

<a id="HTTP_DENY_UPSERT"></a>**Rule `HTTP_DENY_UPSERT`**: MUST

The denial of upserts ([Base `PARAM_DENY_UPSERT`](./base.md#PARAM_DENY_UPSERT)) MUST be sent as `If-Match: *` on `PUT /:collection/:id`, which by [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#section-13.1.1) is false when the Resource does not exist. The Server MUST then respond `412 Precondition Failed` with the [`UPSERT_DENIED`](./base.md#UPSERT_DENIED) code.

> **Tip (non-normative): Example**
>
> ```http
> PUT /customers/0190a5f2-1111-7000-8000-000000000001
> If-Match: *
>
> PATCH /orders?status=pending
> Expect-Match: 1
> ```
> The first request replaces the customer only if it exists; the second patches only if exactly one pending order matches.

> **Note (non-normative)**
>
> `If-None-Match: *` on `PUT /:collection/:id` has the opposite effect, also defined by RFC 9110: the Resource is created only if it does not exist yet.

## 5. Errors

<a id="HTTP_ERROR_STATUS"></a>**Rule `HTTP_ERROR_STATUS`**: MUST

Servers MUST respond to failed operations with the status code mapped to the error code in the table below ([Base `ERROR_PROTOCOL_MAPPING`](./base.md#ERROR_PROTOCOL_MAPPING)).

| Error code | Status |
|---|---|
| [`INVALID_INPUT`](./base.md#INVALID_INPUT) | `400 Bad Request`, or `422 Unprocessable Content` for Resources that do not conform to a `strict` schema ([section 7](#7-schemas)) |
| [`INVALID_PATCH`](./base.md#INVALID_PATCH) | `400 Bad Request` when the patch is malformed, `422 Unprocessable Content` when it cannot be applied ([RFC 5789](https://www.rfc-editor.org/rfc/rfc5789)) |
| [`NOT_FOUND`](./base.md#NOT_FOUND) | `404 Not Found` |
| [`CONFLICT`](./base.md#CONFLICT) | `409 Conflict` |
| [`EXPECT_MISMATCH`](./base.md#EXPECT_MISMATCH) | `412 Precondition Failed` |
| [`UPSERT_DENIED`](./base.md#UPSERT_DENIED) | `412 Precondition Failed` |
| [`NEGOTIATION`](./base.md#NEGOTIATION) | `406 Not Acceptable` for the response format, `415 Unsupported Media Type` for the request format, `400 Bad Request` for specification versions |
| [`UNSUPPORTED`](./base.md#UNSUPPORTED) | `405 Method Not Allowed`, with an `Allow` header field, for a method not supported on the endpoint; `501 Not Implemented` for other features and operators |
| [`STRICT_WARNINGS`](./base.md#STRICT_WARNINGS) | `422 Unprocessable Content` |
| [`ACCESS_DENIED`](./base.md#ACCESS_DENIED) | `403 Forbidden`, or `401 Unauthorized` when the Client is not authenticated |
| [`INTERNAL`](./base.md#INTERNAL) | `500 Internal Server Error`, or `503 Service Unavailable`, with `Retry-After`, when the Data source is unavailable |
| [`PRECONDITION_FAILED`](./metadata.md#PRECONDITION_FAILED) (Metadata) | `412 Precondition Failed` |
| [`SCHEMA_INCOMPATIBLE`](./schema.md#SCHEMA_INCOMPATIBLE) (Schema) | `409 Conflict` |

<a id="HTTP_ERROR_BODY"></a>**Rule `HTTP_ERROR_BODY`**: SHOULD

Error bodies SHOULD be Problem Details objects ([RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)) labeled `application/problem+json`, with the `code` and `target` members of [Base `ERROR_PROBLEM_DETAILS`](./base.md#ERROR_PROBLEM_DETAILS).

> **Tip (non-normative): Example**
>
> ```http
> HTTP/1.1 404 Not Found
> Content-Type: application/problem+json
>
> { "type": "about:blank", "title": "Not Found", "status": 404,
>   "detail": "Order 0190a5f2-7c3e-7b1a-9f4e-2d8c6b1e4a90 not found",
>   "code": "NOT_FOUND", "target": "resource" }
> ```

## 6. Asynchronous operations

> **Caution (non-normative): Requires the Asynchronous operations extension**
>
> This section maps the **[Asynchronous operations extension](./async.md#1-asynchronous-operations)** (`async ^0.1.0`) to HTTP. It applies only to Servers that support that extension; Servers that do not support it ignore this section, and every operation is synchronous.

### 6.1 Negotiation

<a id="HTTP_ASYNC_PREFER"></a>**Rule `HTTP_ASYNC_PREFER`**: MUST

A Client that prefers asynchronous processing ([Async `ASYNC_CLIENT_PREFER`](./async.md#ASYNC_CLIENT_PREFER)) MUST send `Prefer: respond-async` ([RFC 7240](https://www.rfc-editor.org/rfc/rfc7240)).

<a id="HTTP_ASYNC_EXPECT"></a>**Rule `HTTP_ASYNC_EXPECT`**: MUST

A Client that requires asynchronous processing ([Async `ASYNC_CLIENT_REQUIRE`](./async.md#ASYNC_CLIENT_REQUIRE)) MUST send `Expect: 202-accepted`.

<a id="HTTP_ASYNC_417"></a>**Rule `HTTP_ASYNC_417`**: MUST

When the negotiation fails ([Async `ASYNC_SERVER_MATRIX`](./async.md#ASYNC_SERVER_MATRIX)), the Server MUST respond `417 Expectation Failed` with the [`NEGOTIATION`](./base.md#NEGOTIATION) code.

### 6.2 Accepting an operation

<a id="HTTP_ASYNC_202"></a>**Rule `HTTP_ASYNC_202`**: MUST

When the Server runs an operation asynchronously, it MUST respond `202 Accepted`, with the Operation ID in the `Operation-ID` header field and the URL of the operation state in the `Location` header field.

<a id="HTTP_ASYNC_OPERATIONS_PATH"></a>**Rule `HTTP_ASYNC_OPERATIONS_PATH`**: SHOULD

When the operation state is served by the same API, its URL SHOULD be `/@operations/:operationId`, relative to the base URL of the API. Servers MAY use any other URL, including on another host.

### 6.3 Operation state

<a id="HTTP_ASYNC_POLL_425"></a>**Rule `HTTP_ASYNC_POLL_425`**: MUST

While the operation is pending, `GET` on the operation URL MUST respond `425 Too Early`, with the state (`status: "pending"`) and, when known, the progress in the body, and SHOULD include `Retry-After`.

<a id="HTTP_ASYNC_POLL_DONE"></a>**Rule `HTTP_ASYNC_POLL_DONE`**: MUST

When the operation has completed, `GET` on the operation URL MUST respond with the status code, header fields and body that the synchronous response would have had, for both success and failure ([Async `ASYNC_POLL_SUCCESS`](./async.md#ASYNC_POLL_SUCCESS) and [`ASYNC_POLL_FAILURE`](./async.md#ASYNC_POLL_FAILURE)).

> **Tip (non-normative): Example**
>
> ```http
> GET /@operations/0190a5f2-9a00-7c00-8000-00000000abcd
>
> HTTP/1.1 425 Too Early
> Retry-After: 5
> Content-Type: application/json
>
> { "status": "pending", "progress": { "done": 12000, "total": 50000 } }
> ```
> When the `deleteByQuery` completes, the same request returns `204 No Content` with `Modified-Count: 50000`, as the synchronous response would.

> **Note (non-normative): Rationale**
>
> `202 Accepted` is the response to the original request. Responding to polls of a pending operation with a different status (`425`) keeps every `2xx` poll response equal to the final result, so a Client never mistakes a progress object for the Result.

### 6.4 Progress stream

<a id="HTTP_ASYNC_SSE"></a>**Rule `HTTP_ASYNC_SSE`**: MAY

Servers MAY stream the state of an operation as [Server-Sent Events](https://html.spec.whatwg.org/multipage/server-sent-events.html) when the Client requests the operation URL with `Accept: text/event-stream`: `progress` events carry the progress, and a final `done` event carries the completed state, after which the stream ends.

### 6.5 Callbacks

<a id="HTTP_ASYNC_CALLBACK_HEADERS"></a>**Rule `HTTP_ASYNC_CALLBACK_HEADERS`**: MAY

The callback URLs ([Async `ASYNC_CALLBACK_URL`](./async.md#ASYNC_CALLBACK_URL) and [`ASYNC_CALLBACK_ERROR_URL`](./async.md#ASYNC_CALLBACK_ERROR_URL)) MAY be sent in the `Callback` and `Callback-Error` request header fields. The `Location` of the operation state MUST be sent even when callbacks are requested ([Async `ASYNC_CALLBACK_POLL_FALLBACK`](./async.md#ASYNC_CALLBACK_POLL_FALLBACK)).

<a id="HTTP_ASYNC_STANDARD_WEBHOOKS"></a>**Rule `HTTP_ASYNC_STANDARD_WEBHOOKS`**: MUST

Callbacks MUST be `POST` requests that conform to [Standard Webhooks](https://www.standardwebhooks.com/) 1.0: the `webhook-id` header field MUST be the Operation ID, and the `webhook-timestamp` and `webhook-signature` header fields MUST be sent and computed as that specification defines. Servers SHOULD prefer the asymmetric signature scheme (`v1a`, Ed25519) and MUST document how Clients obtain the verification keys.

<a id="HTTP_ASYNC_CALLBACK_PAYLOAD"></a>**Rule `HTTP_ASYNC_CALLBACK_PAYLOAD`**: MUST

The callback body MUST be a JSON object with `type` (`crud.operation.succeeded` or `crud.operation.failed`), `timestamp` (ISO 8601, when the operation completed) and `data`, an object with the `operationId` and the completed state: the `status` code, the relevant `headers` and the `body` of the response that the operation URL returns.

<a id="HTTP_ASYNC_CALLBACK_LARGE"></a>**Rule `HTTP_ASYNC_CALLBACK_LARGE`**: MAY

When the body exceeds the size the Server accepts for callbacks, the Server MAY omit `data.body` and set `data.truncated` to `true`; the Client then retrieves the state from the operation URL.

<a id="HTTP_ASYNC_CALLBACK_RETRIES"></a>**Rule `HTTP_ASYNC_CALLBACK_RETRIES`**: SHOULD

Servers SHOULD retry failed deliveries as recommended by Standard Webhooks: only `2xx` responses are successful, retries use exponential backoff with jitter, `410 Gone` stops deliveries to that URL, and `Retry-After` is honored.

> **Tip (non-normative): Example**
>
> ```http
> POST /hooks/crud HTTP/1.1
> Host: client.example.com
> Content-Type: application/json
> webhook-id: 0190a5f2-9a00-7c00-8000-00000000abcd
> webhook-timestamp: 1793816405
> webhook-signature: v1a,hnO3f9T8Ytu9HwrXslvumlUpqtNVqkhqw/enGzPCXe5BdqzCInXqYXFymVJaA7AZdpXwVLPo3mNl8EM+m7TBAg==
>
> { "type": "crud.operation.succeeded",
>   "timestamp": "2026-11-04T18:20:00.000Z",
>   "data": {
>     "operationId": "0190a5f2-9a00-7c00-8000-00000000abcd",
>     "status": 204,
>     "headers": { "Modified-Count": "50000" },
>     "body": null
>   } }
> ```

## 7. Schemas

> **Caution (non-normative): Requires the Schema extension**
>
> This section applies only to Servers that support the [Schema extension](./schema.md#1-schemas) (`schema ^0.1.0`).

### 7.1 Endpoints

The `@schema` Collection ([Schema `SCHEMA_COLLECTION`](./schema.md#SCHEMA_COLLECTION)) uses the endpoints of [section 2](#2-endpoints), with `@schema` as the Collection and the Slug of the described Collection as the Resource ID.

| Operation | Method and path |
|---|---|
| `list` | `GET /@schema` |
| `get` | `GET /@schema/:collection` |
| `create` | `POST /@schema` |
| `clone` | `POST /@schema/:collection/clone` |
| `patchById` | `PATCH /@schema/:collection` |
| `patchByQuery` | `PATCH /@schema` |
| `replaceById` | `PUT /@schema/:collection` |
| `replaceByQuery` | `PUT /@schema` |
| `deleteById` | `DELETE /@schema/:collection` |
| `deleteByQuery` | `DELETE /@schema` |

<a id="HTTP_SCHEMA_ENDPOINTS"></a>**Rule `HTTP_SCHEMA_ENDPOINTS`**: MUST

Servers MUST expose the operations on schemas they support with the method and path in the table above.

<a id="HTTP_SCHEMA_ALIAS"></a>**Rule `HTTP_SCHEMA_ALIAS`**: MUST

`GET`, `PUT`, `PATCH` and `DELETE` on `/:collection/@schema` MUST be equivalent to the same method on `/@schema/:collection`.

> **Tip (non-normative): Example**
>
> ```http
> GET /@schema?@fields=_id
> GET /customers/@schema
> PUT /@schema/customers
> PATCH /@schema?@q={}
> ```

### 7.2 Derivation

<a id="HTTP_SCHEMA_DERIVE"></a>**Rule `HTTP_SCHEMA_DERIVE`**: MUST

The "Derive" Parameter ([Schema `SCHEMA_DERIVE`](./schema.md#SCHEMA_DERIVE)) MUST be sent as the control parameter `@derive=true`.

> **Tip (non-normative): Example**
>
> ```http
> PUT /@schema/customers?@derive=true
> Content-Type: application/json
>
> { "_id": "customers", "validation": "strict" }
> ```

### 7.3 Linking Resources to their schema

<a id="HTTP_SCHEMA_DESCRIBEDBY"></a>**Rule `HTTP_SCHEMA_DESCRIBEDBY`**: SHOULD

Responses of `get` and `list` on a Collection with a registered schema SHOULD include a `Link` header field with the `describedby` relation to `/@schema/:collection`.

> **Tip (non-normative): Example: describedby link in a list response**
>
> ```http
> GET /customers
>
> HTTP/1.1 200 OK
> Link: </@schema/customers>; rel="describedby"
> ```

<a id="HTTP_SCHEMA_RAW"></a>**Rule `HTTP_SCHEMA_RAW`**: MUST

`GET /@schema/:collection` with `Accept: application/schema+json` MUST respond with only the value of the `schema` Field, compiled as specified by ESType ([ESType section 2](../estype.md#2-compilation)), labeled `application/schema+json`. When the Collection has no registered schema ([Schema `SCHEMA_NULL`](./schema.md#SCHEMA_NULL)), the Server MUST fail with the [`NOT_FOUND`](./base.md#NOT_FOUND) error, with target `schema` ([Schema `SCHEMA_NOT_FOUND_TARGET`](./schema.md#SCHEMA_NOT_FOUND_TARGET)).

> **Tip (non-normative): Example: reading only the JSON Schema**
>
> ```http
> GET /@schema/customers
> Accept: application/schema+json
>
> HTTP/1.1 200 OK
> Content-Type: application/schema+json
>
> { "type": "object", "properties": { "_id": { "type": "string" }, "name": { "type": "string" } }, "required": ["_id", "name"] }
> ```

> **Note (non-normative)**
>
> [JSON Schema Core, section 9.5.1.1](https://json-schema.org/draft/2020-12/json-schema-core) recommends the `describedby` relation ([IANA Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml)) to link instances to their schema. The media type `application/schema+json` is proposed by JSON Schema but not yet registered by IANA.

### 7.4 Errors and Warnings

<a id="HTTP_SCHEMA_STATUS"></a>**Rule `HTTP_SCHEMA_STATUS`**: MUST

An [`INVALID_INPUT`](./base.md#INVALID_INPUT) error caused by a Resource that does not conform to a `strict` schema ([Schema `SCHEMA_STRICT`](./schema.md#SCHEMA_STRICT)) MUST be mapped to `422 Unprocessable Content`; other [`INVALID_INPUT`](./base.md#INVALID_INPUT) errors keep `400 Bad Request`.

<a id="HTTP_SCHEMA_PROBLEM_ERRORS"></a>**Rule `HTTP_SCHEMA_PROBLEM_ERRORS`**: SHOULD

The Problem Details object of a [`SCHEMA_STRICT`](./schema.md#SCHEMA_STRICT) error SHOULD carry the violations ([Schema `SCHEMA_VIOLATION_DETAILS`](./schema.md#SCHEMA_VIOLATION_DETAILS)) in an `errors` member, as an array of output units.

<a id="HTTP_SCHEMA_WARNING_PARAMS"></a>**Rule `HTTP_SCHEMA_WARNING_PARAMS`**: SHOULD

Each [`SCHEMA_VIOLATION`](./schema.md#SCHEMA_VIOLATION) Warning SHOULD be a separate item of the `Warning` header field, with the parameters `instance` (the `instanceLocation`) and `keyword` (the `keywordLocation`).

> **Tip (non-normative): Example**
>
> ```http
> HTTP/1.1 201 Created
> Warning: "SCHEMA_VIOLATION";message="must be integer";instance="/age";keyword="/properties/age/type"
> ```

## 8. References

### 8.1 Normative references

- [RFC 2119](https://www.rfc-editor.org/rfc/rfc2119) and [RFC 8174](https://www.rfc-editor.org/rfc/rfc8174): requirement level key words (BCP 14)
- [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110): HTTP Semantics
- [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986): URI Generic Syntax
- [RFC 10008](https://www.rfc-editor.org/rfc/rfc10008): The HTTP QUERY Method
- [RFC 7240](https://www.rfc-editor.org/rfc/rfc7240): Prefer Header for HTTP
- [RFC 9651](https://www.rfc-editor.org/rfc/rfc9651): Structured Field Values for HTTP
- [RFC 8288](https://www.rfc-editor.org/rfc/rfc8288): Web Linking
- [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457): Problem Details for HTTP APIs
- [RFC 5789](https://www.rfc-editor.org/rfc/rfc5789): PATCH Method for HTTP
- [RFC 6902](https://www.rfc-editor.org/rfc/rfc6902) and [RFC 7396](https://www.rfc-editor.org/rfc/rfc7396): JSON Patch and JSON Merge Patch
- [W3C Trace Context](https://www.w3.org/TR/trace-context/): `traceparent`
- [Server-Sent Events](https://html.spec.whatwg.org/multipage/server-sent-events.html) (WHATWG HTML)
- [Standard Webhooks](https://www.standardwebhooks.com/) 1.0
- [JSON Schema 2020-12](https://json-schema.org/draft/2020-12/json-schema-core): `describedby` and `application/schema+json` ([section 7](#7-schemas))
- [IANA Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml): `describedby`
- [ESType](https://github.com/lingodata/estype) `^0.1.0`: schema compilation (sections 2 and 7)
- [UnQuery](https://github.com/lingodata/unquery), [ECSON](https://github.com/lingodata/ecson) and the CRUD API Base Specification and extensions (LingoData)

### 8.2 Informative references

- [RFC 6648](https://www.rfc-editor.org/rfc/rfc6648): Deprecating the "X-" Prefix
- [RFC 9111](https://www.rfc-editor.org/rfc/rfc9111): HTTP Caching (obsoletes the original `Warning` header field)
- [RFC 8470](https://www.rfc-editor.org/rfc/rfc8470): Using Early Data in HTTP (defines `425 Too Early`)
