# TOO_MANY_FILES

The site has too many files.

- **HTTP class:** 413
- **Retryable:** no

## What happened

The site would have more than 250 files.

## Fix

Remove unused files or bundle scripts and stylesheets, then finalize again.

## What to tell the user

If content has to go, ask the user what to drop.

## Agent hint

The exact `error.hint` text; Carnival fills each `<…>` for the call.

```text
The site would exceed 250 files. Remove unused files or bundle assets, then finalize again.
```

## Related

- [`SITE_TOO_LARGE`](https://carnival-staging.dev/docs/errors/SITE_TOO_LARGE.md): The site is too large.
- [`TOO_MANY_FILES_IN_CALL`](https://carnival-staging.dev/docs/errors/TOO_MANY_FILES_IN_CALL.md): Too many files in one call.

All error codes: [error codes](https://carnival-staging.dev/docs/errors.md)
