---
title: "ErrorResponse"
url: "https://console.9fin.com/apis/instruments-bonds-and-loans/versions/b44d153f-c159-4311-9d98-5a5ab2608aa6/schemas/ErrorResponse"
---

> Full API specification: https://console.9fin.com/apis/instruments-bonds-and-loans/versions/b44d153f-c159-4311-9d98-5a5ab2608aa6.md

# ErrorResponse

Client-facing error envelope.

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: 9fin Instruments (Bonds & Loans) API
  version: 0.8.0
servers:
  - description: Production environment
    url: https://api.9fin.com
components:
  schemas:
    ErrorDetail:
      description: One field-level problem within an error response.
      properties:
        field:
          examples:
            - limit
          title: Field
          type: string
        message:
          examples:
            - Input should be less than or equal to 200
          title: Message
          type: string
      required:
        - field
        - message
      title: ErrorDetail
      type: object
    ErrorResponse:
      description: Client-facing error envelope.
      examples:
        - error_code: invalid_cursor
          message: The supplied cursor could not be decoded.
          trace_id: 202bde256c7d446f9623efdc96286c5d
        - error_code: service_unavailable
          message: Database is not available
          trace_id: c2416d52c6d14c8e831aad792407442c
        - details:
            - field: limit
              message: Input should be less than or equal to 200
          error_code: validation_error
          message: Request validation failed
          trace_id: 5cc0f4dd4a0a4b7fa0b3b0f2b4f9a1c7
      properties:
        details:
          anyOf:
            - items:
                $ref: "#/components/schemas/ErrorDetail"
              type: array
            - type: "null"
          title: Details
        error_code:
          title: Error Code
          type: string
        message:
          title: Message
          type: string
        trace_id:
          anyOf:
            - type: string
            - type: "null"
          title: Trace Id
      required:
        - error_code
        - message
      title: ErrorResponse
      type: object
```
