---
title: "IriError"
url: "https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086/schemas/IriError"
---

> Full API specification: https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086.md

# IriError

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Policy Service
  version: 0.0.21
servers:
  - url: https://uat.api.zinnia.io
components:
  schemas:
    IriValidationError:
      type: object
      properties:
        code:
          type: string
          description: Structured error code classifying the business rule or decision
            failure.
          pattern: ^[a-zA-Z]+\.[a-zA-Z]+\.[a-zA-Z]+$
          example: policy.inquiry.notFound
        message:
          type: string
          description: Why the error occurred / specific business rule violation.
      required:
        - code
        - message
    IriError:
      type: object
      properties:
        code:
          type: string
          description: A structured error code <domain>.<category>.<subcategory>.
          pattern: ^[a-zA-Z]+\.[a-zA-Z]+\.[a-zA-Z]+$
          example: policy.inquiry.notFound
        timestamp:
          type: string
          description: Timestamp the error occurred.
          format: date-time
        message:
          type: string
          description: Message with specific error details.
        validationErrors:
          description: Logical rule violations related to business logic or rules.
          type: array
          items:
            $ref: "#/components/schemas/IriValidationError"
      required:
        - code
        - message
```
