# Errors

> Canonical error types for blog connector apps

Canonical errors are thrown by query handlers when a requested resource is not found. Your connector app should throw these errors so the frontend can handle missing content gracefully.

Import these from `@laioutr-core/canonical-types/blog`.

## Collection

### BlogCollectionBySlugNotFoundError `BLOG_COLLECTION_NOT_FOUND`

Thrown when a blog collection with the given slug is not found. (HTTP 404)

```ts
import { BlogCollectionBySlugNotFoundError } from '@laioutr-core/canonical-types/blog';
```

**Error data:**

- slug: string

## Post

### BlogPostBySlugNotFoundError `BLOG_POST_NOT_FOUND`

Thrown when a blog post with the given slug is not found. (HTTP 404)

```ts
import { BlogPostBySlugNotFoundError } from '@laioutr-core/canonical-types/blog';
```

**Error data:**

- slug: string
