Skip to content

resource_not_found

Returned as
The problem's code
HTTP status
404 Not Found
type
https://zautha.com/docs/errors/resource_not_found

The id in the path is not an object of this instance: it never existed, it was deleted, or it belongs to another instance. Zautha answers another instance’s objects with 404 too, so a response never reveals that an id exists elsewhere. An unknown path gets the same code.

@zautha/nextjs returns it from an API route whose auth.protect() condition (a role or a permission) the signed-in user does not meet.

Check that the id comes from the same instance as the secret key (sk_test_… for development, sk_live_… for production) and that the object was not deleted.