> ## Documentation Index
> Fetch the complete documentation index at: https://developers.meshapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Error Catalog

> Return the full error action-item catalog for client-side error surfacing.

Resolution a client should apply: look up ``codes`` by its specific error
identifier, fall back to ``categories`` by the error's category, then
``default``. The payload is small and slow-changing — cache it and re-fetch
when ``version`` changes.



## OpenAPI

````yaml /api/openapi.json get /v1/errors
openapi: 3.1.0
info:
  title: MeshAPI
  description: One key, all AI models.
  version: 0.1.0
servers:
  - url: https://api.meshapi.ai
security:
  - BearerAuth: []
paths:
  /v1/errors:
    get:
      tags:
        - Errors
      summary: Get Error Catalog
      description: >-
        Return the full error action-item catalog for client-side error
        surfacing.


        Resolution a client should apply: look up ``codes`` by its specific
        error

        identifier, fall back to ``categories`` by the error's category, then

        ``default``. The payload is small and slow-changing — cache it and
        re-fetch

        when ``version`` changes.
      operationId: get_error_catalog
      parameters:
        - in: header
          name: X-Mesh-Version
          required: false
          schema:
            type: string
            enum:
              - 2026-08
            default: 2026-08
          example: 2026-08
          description: >-
            Dated version of the API contract to pin this request to. Omit it
            and the request is served under `2026-08` — the oldest supported
            version, so an existing integration is never moved by a release. A
            malformed or unsupported value is rejected with `400
            invalid_api_version` rather than falling back silently. The version
            actually served is echoed as `X-Mesh-Version` on every response,
            including errors.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorCatalogOut'
      security:
        - BearerAuth: []
components:
  schemas:
    ErrorCatalogOut:
      properties:
        version:
          type: string
          title: Version
          description: Cache key / ETag — changes when the catalog changes.
        codes:
          additionalProperties:
            $ref: '#/components/schemas/ErrorCopy'
          type: object
          title: Codes
          description: >-
            Per-code copy, keyed by the specific identifier a client has (the
            semantic provider_code when present, else the top-level error code).
        categories:
          additionalProperties:
            $ref: '#/components/schemas/ErrorCategoryCopy'
          type: object
          title: Categories
          description: Per-category fallback copy + badge label, used when no code matches.
        default:
          $ref: '#/components/schemas/ErrorCopy'
          description: Last-resort copy when neither code nor category matches.
      type: object
      required:
        - version
        - codes
        - categories
        - default
      title: ErrorCatalogOut
    ErrorCopy:
      properties:
        title:
          type: string
          title: Title
          description: Short human label, e.g. 'Context length exceeded'.
        description:
          type: string
          title: Description
          description: One-sentence plain-English explanation.
        action:
          type: string
          title: Action
          description: What the caller can do about it (empty when nothing is).
      type: object
      required:
        - title
        - description
        - action
      title: ErrorCopy
    ErrorCategoryCopy:
      properties:
        title:
          type: string
          title: Title
          description: Short human label, e.g. 'Context length exceeded'.
        description:
          type: string
          title: Description
          description: One-sentence plain-English explanation.
        action:
          type: string
          title: Action
          description: What the caller can do about it (empty when nothing is).
        label:
          type: string
          title: Label
          description: Display label (badge text) for the category.
      type: object
      required:
        - title
        - description
        - action
        - label
      title: ErrorCategoryCopy
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Enter your MeshAPI key (`rsk_...`) — sent as `Authorization: Bearer
        <key>`.

````