Internal error
ERR-P01-IDT-0500 - Internal error
Section titled “ERR-P01-IDT-0500 - Internal error”Summary
Section titled “Summary”An unexpected server-side failure that the caller cannot fix - the identity service’s catch-all 500.
When this is raised
Section titled “When this is raised”- A domain error reaches a router whose mapping table has no entry for
it, so the envelope falls back to
IDENTITY_ERR.internalwith status 500. - On
POST /v1/humans/verify, the code is accepted but the subsequent API-Key issue fails - an “impossible” state the service surfaces as 500 so the cause is investigatable rather than silently masked as 401. - Any other unhandled exception path within the identity workers.
What to do
Section titled “What to do”- Retry once after a short delay; the failure may be transient.
- If it persists, capture the
timestampandinstanceand contact support - this is a server-side bug or outage, not a payload problem.
Server-side cause
Section titled “Server-side cause”- Raised by:
packages/identity/src/router/humans.ts(theERR_CODE_BY_CODE[…] ?? IDENTITY_ERR.internalfallback and the “verify succeeded but api-key issue failed” branch) andpackages/identity/src/router/register.ts(theERR_CODE[…] ?? IDENTITY_ERR.internalfallback). - Guard: the
?? IDENTITY_ERR.internaldefault in each envelope builder.
Example response
Section titled “Example response”{ "type": "https://citizenry.id/errors/ERR-P01-IDT-0500", "title": "Internal Server Error", "status": 500, "code": "ERR-P01-IDT-0500", "message": "verify succeeded but api-key issue failed: owner missing", "method": "POST", "instance": "/v1/humans/verify", "request_url": "https://api.citizenry.id/v1/humans/verify", "timestamp": "2026-05-17T07:00:00.000Z"}Related codes
Section titled “Related codes”ERR-P01-IDT-4001- DB failure (a specific external cause).ERR-P01-IDT-0503- backend unavailable.
Changelog
Section titled “Changelog”- 0.1.0 - introduced.