prongs
GitHub

conflict.state

Not possible right now: create your page first, already published

Profile

Raised with

Status

409

Message

yours
Read https://www.prongs.dev/docs/intents/conflict/state.md and tell me whether conflict.state fits what I am building.

Conflict intents

Example

TS
return fail('conflict.state', 'Create your page first.');
The caller gets
Terminal
HTTP 409

{
"ok": false,
"error": "Create your page first.",
"code": "conflict.state"
}

Connections

Choosing between neighbours

  • If it is

    Use

  • Not possible right now: create your page first, already published

    conflict.state

For registry authors

Starter intents. These are the intents prongs add errors puts in your registry, raised with fail(). Change the messages to suit your app, and the statuses through the status.* intents they are built from.

The entry prongs add errors writes into your registry. Change the message here, or the status through its status.* ref.

TS
'conflict.state': {
kind: 'semantic',
description: 'Not possible right now: create your page first, already published',
refs: ['status.conflict'],
binding: { publicMessage: 'That isn’t possible right now.' },
},