---
title: NotFound
description: The luna type, handler, route, file or luna named by the call does not exist for this caller.
related:
  - /clients/call-lunas-over-http
  - /concepts/keys-and-tokens
  - /errors
---

`NotFound` means the call names something that does not exist for this caller. The status is 404.

## Issue

A call fails, and the message names what Luna could not find.

```json
{"error": {"code": "NotFound", "message": "no luna type Lists"}}
```

## Cause

| Message | Cause |
| --- | --- |
| `no luna type <TYPE>` | No such luna type, or it is private, or the publishable key was made for other types |
| `<TYPE> has no handler <HANDLER>` | The luna type has no handler of that name |
| `expected /<type>/<key…>/<handler>` | The path is too short to name a luna and a handler |
| `no route here` | No HTTP route matches the path |
| `<TYPE> <KEY> does not exist` | The handler has `requires: "exists"` and the luna has never written anything |
| `<TYPE> has no stream <STREAM>` | The luna type declares no stream of that name |
| `<TYPE> has no bucket <BUCKET>` | The luna type declares no bucket of that name |
| `no object "<PATH>" in bucket <BUCKET>` | The path does not fit the bucket's `path` pattern |
| `no object <BUCKET>/<PATH>` | The bucket holds no file at that path |

A private luna type answers exactly as a missing one does, so callers from outside cannot learn which private types exist.

A handler's own declared error may also be called `NotFound`. That one answers with status 422, not 404, and carries your `data`.

`NotFound` differs from [`Invalid`](/errors/invalid). `Invalid` means the type and handler exist, but the request does not fit them.

## Solution

Do not retry. The same call fails the same way.

- Check the spelling and case of the luna type and handler against your code.
- Make the luna type public with `visibility: "public"`, or call it with an API token from a server.
- If the publishable key was made with `--type`, add the type to a new key with [`luna keys create`](/cli/keys).
- For `requires: "exists"`, create the luna with a handler that writes before you call this one.
