Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.3 KB

File metadata and controls

49 lines (37 loc) · 1.3 KB
title Error Response Model
description Error Response data model specification
detail_level Data structure
tags
model
error
data
revised false

Error Response Model

The Error Response model defines the standardized format for API error responses across the system.

Schema

interface ErrorResponse {
  error: {
    code: string;
    message: string;
    details?: any;
  };
  status: number;
}

Properties

Property Type Description
error.code string Machine-readable error code
error.message string Human-readable error message
error.details any Optional additional error details
status number HTTP status code

Common Error Codes

  • AUTH_REQUIRED - Authentication required
  • INVALID_INPUT - Invalid request parameters
  • NOT_FOUND - Resource not found
  • RATE_LIMITED - Too many requests
  • SERVER_ERROR - Internal server error

Usage

Error responses are returned by API endpoints when an error occurs. The standardized format enables uniform error handling across the application.

Related Documentation

  • System Integration (Documentation moved) - For API integration guidelines