Give later waves a measurable import/table/path baseline without changing business behavior or occupying the integration slot. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
1012 B
Go
20 lines
1012 B
Go
package contracts
|
|
|
|
// Stable API error codes. Handlers should eventually emit only these strings
|
|
// in the JSON envelope. Wave 0 records the table; it does not change HTTP.
|
|
const (
|
|
ErrorDocumentNotFound = "DOCUMENT_NOT_FOUND"
|
|
ErrorDocumentContentMissing = "DOCUMENT_CONTENT_PROJECTION_MISSING"
|
|
ErrorDocumentContentEmpty = "DOCUMENT_CONTENT_PROJECTION_EMPTY"
|
|
ErrorDocumentContentIntegrity = "DOCUMENT_CONTENT_INTEGRITY_MISMATCH"
|
|
ErrorDocumentContentDrift = "DOCUMENT_CONTENT_PROJECTION_DRIFT"
|
|
ErrorDocumentHeadConflict = "DOCUMENT_HEAD_CONFLICT"
|
|
ErrorDocumentEditForbidden = "DOCUMENT_EDIT_FORBIDDEN"
|
|
ErrorDocumentBusy = "DOCUMENT_BUSY"
|
|
ErrorPlanFrozen = "PLAN_FROZEN"
|
|
ErrorWorkflowAccessDenied = "WORKFLOW_ACCESS_DENIED"
|
|
ErrorTurnNotCompleted = "TURN_NOT_COMPLETED"
|
|
ErrorMessageNotExportable = "MESSAGE_NOT_EXPORTABLE"
|
|
ErrorMessageRevisionChanged = "MESSAGE_REVISION_CHANGED"
|
|
)
|