# Error types

Ingest and organisation API errors use `application/problem+json`. The `code` field is a stable `lower_snake_case` identifier. The `type` field is an identifier, not a document to fetch, in the form `https://newtalaria.com/docs/reference/errors#<code>`.

Each heading below is the exact fragment the `type` URL uses (underscores included). Official SDKs branch on `code`. `/otlp` keeps its own error body; see [OTLP](https://docs.newtalaria.com/reference/otlp.md).

## invalid_body

The request body failed validation.

`code` is `invalid_body`. `type` ends with `#invalid_body`.

## invalid_key

The API key is missing, malformed, or not accepted.

`code` is `invalid_key`. `type` ends with `#invalid_key`.

## insufficient_scope

The key does not have the required scope for this route.

`code` is `insufficient_scope`. `type` ends with `#insufficient_scope`.

## forbidden_origin

The request origin is not allowed for this project key.

`code` is `forbidden_origin`. `type` ends with `#forbidden_origin`.

## not_found

The resource does not exist, or is not visible with this token.

`code` is `not_found`. `type` ends with `#not_found`.

## conflict

The request conflicts with the current state.

`code` is `conflict`. `type` ends with `#conflict`.

## invalid_release

The release identifier is not valid.

`code` is `invalid_release`. `type` ends with `#invalid_release`.

## quota_exceeded

The project or organisation has reached its quota.

`code` is `quota_exceeded`. `type` ends with `#quota_exceeded`.

## ingest_blocked

Ingest is stopped by a block record (unpaid or expired trial, neglected, or abusive).

`code` is `ingest_blocked`. `type` ends with `#ingest_blocked`.

## rate_limited

Too many requests in the current window.

`code` is `rate_limited`. `type` ends with `#rate_limited`.

## body_too_large

The request body exceeds the size limit.

`code` is `body_too_large`. `type` ends with `#body_too_large`.

## unsupported_encoding

The Content-Encoding or body encoding is not supported.

`code` is `unsupported_encoding`. `type` ends with `#unsupported_encoding`.

## ingest_unavailable

Ingest is temporarily unavailable.

`code` is `ingest_unavailable`. `type` ends with `#ingest_unavailable`.

## not_implemented

This route or feature is not implemented.

`code` is `not_implemented`. `type` ends with `#not_implemented`.

## wrong_cell

The key or request was sent to the wrong cell.

`code` is `wrong_cell`. `type` ends with `#wrong_cell`.

## invalid_scope

Issuance only: an sk-only scope was requested for a publishable key.

`code` is `invalid_scope`. `type` ends with `#invalid_scope`.
