prongs
GitHub

record.missing

The thing does not exist, or the caller may not know it does

Profile

Raised with

Status

404

Message

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

Example

TS
return fail('record.missing', 'Profile not found.');
The caller gets
Terminal
HTTP 404

{
"ok": false,
"error": "Profile not found.",
"code": "record.missing"
}

Connections

Choosing between neighbours

  • If it is

    Use

  • The thing does not exist, or the caller may not know it does

    record.missing
  • A record that does not exist

    rather than request.missing
    record.missing
  • Hiding that the thing exists at all

    rather than permission.denied
    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
'record.missing': {
kind: 'semantic',
description: 'The thing does not exist, or the caller may not know it does',
refs: ['status.notfound'],
keywords: ['not found', 'missing', 'unknown', 'no such'],
binding: { publicMessage: 'Not found.' },
},