Blog

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_FOUND404

Thrown when a blog collection with the given slug is not found.

slugstring

Post

BlogPostBySlugNotFoundError

BLOG_POST_NOT_FOUND404

Thrown when a blog post with the given slug is not found.

slugstring