Resource not found
ERR-P01-IDT-0404 - Resource not found
Section titled “ERR-P01-IDT-0404 - Resource not found”Summary
Section titled “Summary”The addressed identity resource (human, agent, or key) does not exist.
When this is raised
Section titled “When this is raised”GET /v1/admin/humans/:idis called with anidthat has nohumanrow.GET /v1/admin/agents/:idis called with anidthat has noagentrow.- The generic lookup-miss code for the identity service; it is never used to mask an authorization failure (those are 401/403).
What to do
Section titled “What to do”- Verify the resource id. For admin reads, list the collection first
(
GET /v1/admin/agents) and use an id from the response. - A 404 here is terminal for the given id - do not retry without changing it.
Server-side cause
Section titled “Server-side cause”- Raised by:
packages/identity/src/router/admin.ts- theGET /v1/admin/humans/:idandGET /v1/admin/agents/:idhandlers. - Guard:
const row = rows[0]; if (!row) return c.json({ code: IDENTITY_ERR.not_found, … }, 404).
Example response
Section titled “Example response”{ "type": "https://citizenry.id/errors/ERR-P01-IDT-0404", "title": "Not Found", "status": 404, "code": "ERR-P01-IDT-0404", "message": "no agent with this id", "method": "GET", "instance": "/v1/admin/agents/ag_01J0AGENT", "request_url": "https://api.citizenry.id/v1/admin/agents/ag_01J0AGENT", "timestamp": "2026-05-17T07:00:00.000Z"}Related codes
Section titled “Related codes”ERR-P01-IDT-3100- human email already in use (a conflict, not a miss).ERR-P01-IDT-3110- slug taken.
Changelog
Section titled “Changelog”- 0.1.0 - introduced.