not_found
HTTP 404 · code not_found
No route matches the path, or the resource does not exist.
When Photon sends it
Section titled “When Photon sends it”Sent by the router when no route matches (unless you set a custom NotFound handler), and by handlers through photonerr.NotFound(what), whose message is “what not found”.
What the client should do
Section titled “What the client should do”Check the URL and the resource identifier.
Example response
Section titled “Example response”{ "type": "https://photon.agenticmarket.dev/errors/not_found", "title": "not found", "status": 404, "code": "not_found"}Match on the code field rather than on title, which is meant for people and may change. See all error codes.