{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "LiveComponent Error Response", "description": "Schema for standardized error responses from LiveComponent API", "type": "object", "required": ["success", "error"], "properties": { "success": { "type": "boolean", "const": false }, "error": { "type": "object", "required": ["code", "message"], "properties": { "code": { "type": "string", "description": "Error code identifier", "enum": [ "VALIDATION_ERROR", "COMPONENT_NOT_FOUND", "ACTION_NOT_FOUND", "CSRF_TOKEN_INVALID", "RATE_LIMIT_EXCEEDED", "STATE_CONFLICT", "UPLOAD_FAILED", "PERMISSION_DENIED", "INTERNAL_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "minLength": 1 }, "details": { "type": "object", "description": "Additional error details", "additionalProperties": true }, "componentId": { "type": "string", "description": "Component ID where error occurred" }, "action": { "type": "string", "description": "Action method name that caused the error" }, "timestamp": { "type": "number", "description": "Unix timestamp of error occurrence" } }, "additionalProperties": false } }, "additionalProperties": false }