Files
g-butandClaude Opus 4.5 1c7abeebac docs(claude): add global standards reference and update date
- Add @~/.claude/CLAUDE.md import for global engineering standards
- Update Last Updated date to 2026-01-23

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 15:22:36 +01:00

31 lines
515 B
TypeScript

export type ErrorCode =
| 'UNAUTHORIZED'
| 'VALIDATION_ERROR'
| 'RATE_LIMIT'
| 'DATABASE_ERROR'
| 'INTERNAL_ERROR'
| 'NOT_FOUND';
export interface ErrorDetail {
field?: string;
message: string;
}
export interface ErrorResponse {
error: string;
code: ErrorCode;
details?: ErrorDetail[];
}
export function createErrorResponse(
message: string,
code: ErrorCode,
details?: ErrorDetail[],
): ErrorResponse {
return {
error: message,
code,
...(details && { details }),
};
}