Error Responses
All errors follow a consistent shape:
interface LatticeError { error: string; // Error code (e.g., "NOT_FOUND", "VALIDATION_ERROR") message: string; // Human-readable description entityId?: string; // Included when relevant}Error Codes
Section titled “Error Codes”| Status | Error Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | Missing required fields, invalid entity type |
| 404 | NOT_FOUND | Entity does not exist |
| 404 | PARENT_NOT_FOUND | Parent entity does not exist (on create) |
| 404 | ROUTE_NOT_FOUND | No matching route |
| 409 | VERSION_CONFLICT | Optimistic concurrency version mismatch |
| 500 | INTERNAL_ERROR | Unexpected server error |