prongs
GitHub

request.missing

A required field or parameter is absent

Profile

Raised with

Status

400

Message

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

Example

TS
return fail('request.missing', 'Handle is required.');
The caller gets
Terminal
HTTP 400

{
"ok": false,
"error": "Handle is required.",
"code": "request.missing"
}

Connections

Choosing between neighbours

  • If it is

    Use

  • A required field or parameter is absent

    request.missing
  • A record that does not exist

    record.missing

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
'request.missing': {
kind: 'semantic',
description: 'A required field or parameter is absent',
refs: ['status.badrequest'],
notFor: [{ context: 'a record that does not exist', instead: 'record.missing' }],
binding: { publicMessage: 'Something required is missing.' },
},