---
title: "ErrorResponse"
url: "https://console.9fin.com/apis/demo-api/versions/0f60f9db-1bed-45fa-881c-d4876e2da06f/schemas/ErrorResponse"
---

> Full API specification: https://console.9fin.com/apis/demo-api/versions/0f60f9db-1bed-45fa-881c-d4876e2da06f.md

# ErrorResponse

Client-facing error envelope.

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Demo API
  version: 0.3.0
servers:
  - description: Production environment
    url: https://api.9fin.com
components:
  schemas:
    ErrorResponse:
      description: Client-facing error envelope.
      examples:
        - error_code: bad_request
          message: The request could not be understood.
          trace_id: 202bde256c7d446f9623efdc96286c5d
        - error_code: service_unavailable
          message: Service is temporarily unavailable
          trace_id: c2416d52c6d14c8e831aad792407442c
      properties:
        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
```
