Skip to content

Errors and conflicts ​

Check HTTP status before interpreting the response as a story document. Error responses include a machine-readable code; use the returned code rather than matching a human-readable sentence.

StatusMeaningResponse
400Invalid request parametersCorrect the request
401Missing, invalid, or expired sessionAuthenticate again
403Insufficient permissionStop; do not bypass the authorization check
404Story, content, or route missingCheck the ID and API availability
409Revision or progress conflictReload and reconcile
415Unsupported content typeSend the required JSON content type
422Invalid document or operationCorrect the submitted data

A network timeout is not proof that a write failed. Before repeating a save, read the current revision and inspect whether the intended change already arrived. Preserve the pending edit until the outcome is known.

Do not work around a 403 by changing the actor ID, using another person's cookie, calling a database writer, or accessing a storage bucket directly.

Non Linear documentation · Files in GitHub, no wiki database.