# SYNC_FORBIDDEN

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

`where` returned `false` for a signed-in user, `write` refused the write, or a visitor wrote to a definition without `write`. Without `write`, only a caller with a user writes: sign the person in, or set `write: true` to let visitors write. Check `where`, or show the page only to people who may use it.

## Source

`SYNC_FORBIDDEN` belongs to the `sync` package. Its catalog entry is in [`src/errors.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/errors.ts#L29). It is raised in [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L177), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L545), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L552), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L890).

See [all Sync diagnostics](https://vitehub.dev/docs/sync/diagnostics).

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/sync.md)
- [Get started](https://vitehub.dev/raw/docs/sync/get-started.md)
- [Server API](https://vitehub.dev/raw/docs/sync/server-api.md)
- [Limits and errors](https://vitehub.dev/raw/docs/sync/limits-and-errors.md)
- [Vue](https://vitehub.dev/raw/docs/sync/vue.md)

Next: [Server API](https://vitehub.dev/raw/docs/sync/server-api.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
