# REF_NOT_FOUND: Ref not found

> The project has no branch, tag, or environment by that name. On the delivery API it also means the ref is not one delivery serves: a branch, a live environment such as `dev`, an environment that points at nothing, or a tag with no published snapshot.

Sent by the management API (404) and delivery API (404). The page: https://coho-cms.com/errors/ref-not-found/

## What to do

Check the name: a new project's first branch is `v0.0.x`, not `main`. Delivery serves tags and environments that point at tags; read branches and live environments through preview.

## The response

```json
{
  "code": "REF_NOT_FOUND",
  "type": "https://coho-cms.com/errors/ref-not-found",
  "title": "Ref not found",
  "status": 404,
  "detail": "What went wrong in this request, in a sentence.",
  "instance": "/v1/projects/…"
}
```

Every error code: https://coho-cms.com/errors/
