Docs / Errors

RESOURCE_NOT_FOUND

404Resource not found

Why it happens

Your organization holds nothing with this id on the masjid API (/v1/masjid/*). The id is well formed, but what it names was deleted, belongs to another organization, or never existed.

What to do

  • List the resource again and keep the id each item comes with.
  • Drop ids you stored once they answer this code: a deleted item does not come back.
  • Check that the key belongs to the organization that created the item: a key only ever reaches its own organization.

Example response

http
HTTP/1.1 404
{
  "type": "https://hub.masjidbox.com/docs/errors/RESOURCE_NOT_FOUND",
  "title": "Resource not found",
  "status": 404,
  "detail": "Your organization holds nothing with this id.",
  "instance": "/v1/masjids/msj_abc123defg",
  "code": "RESOURCE_NOT_FOUND",
  "requestId": "req_8f14e45fceea167a5a36dedd4bea2543",
  "requestLogUrl": "https://hub.masjidbox.com/console/logs/req_8f14e45fceea167a5a36dedd4bea2543"
}