Skip to content

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
}
StatusError CodeWhen
400VALIDATION_ERRORMissing required fields, invalid entity type
404NOT_FOUNDEntity does not exist
404PARENT_NOT_FOUNDParent entity does not exist (on create)
404ROUTE_NOT_FOUNDNo matching route
409VERSION_CONFLICTOptimistic concurrency version mismatch
500INTERNAL_ERRORUnexpected server error