---
title: "/llms.txt returns a server error (geo/llms-txt-error)"
description: "geo/llms-txt-error: A 5xx fails Lighthouse's agentic-browsing llms-txt audit (a 404 counts as not applicable) and signals a broken route."
canonical: https://void-design.vercel.app/rules/geo/llms-txt-error
lastModified: 2026-09-16
---

# /llms.txt returns a server error

`geo/llms-txt-error` · severity **error** · category AI search · detected by `void geo` and `void audit`

## Why it matters

A 5xx fails Lighthouse's agentic-browsing llms-txt audit (a 404 counts as not applicable) and signals a broken route.

## How to fix it

Make the route static (export const dynamic = 'force-static') so it can't fail at request time.

## References

- https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt

## More ai search rules

`void geo` reports 41 rules in this category. Generative-engine optimisation: whether AI crawlers that don't run JavaScript see the same content, valid and visible JSON-LD, an explicit AI robots policy, llms.txt, Markdown mirrors and answer-first writing.

- `markdown-mirror-indexable` Markdown mirror can compete with the HTML page, or diverges from it — [geo/markdown-mirror-indexable](https://void-design.vercel.app/rules/geo/markdown-mirror-indexable)
- `markdown-negotiation-vary` Accept: text/markdown negotiation without Vary: Accept — [geo/markdown-negotiation-vary](https://void-design.vercel.app/rules/geo/markdown-negotiation-vary)
- `markdown-negotiation` No Markdown response for Accept: text/markdown — [geo/markdown-negotiation](https://void-design.vercel.app/rules/geo/markdown-negotiation)
- `llms-txt-missing` No /llms.txt — [geo/llms-txt-missing](https://void-design.vercel.app/rules/geo/llms-txt-missing)
- `llms-txt-invalid` /llms.txt doesn't follow the llms.txt format — [geo/llms-txt-invalid](https://void-design.vercel.app/rules/geo/llms-txt-invalid)
- `llms-txt-broken-links` /llms.txt links to URLs that fail — [geo/llms-txt-broken-links](https://void-design.vercel.app/rules/geo/llms-txt-broken-links)
- `llms-txt-not-linked` llms.txt exists but isn't linked from the home page — [geo/llms-txt-not-linked](https://void-design.vercel.app/rules/geo/llms-txt-not-linked)
- `robots-ai-policy` AI crawler policy (allow/deny matrix from robots.txt) — [geo/robots-ai-policy](https://void-design.vercel.app/rules/geo/robots-ai-policy)

Detected by `void geo` and `void audit`. Explain it in a terminal: `void rules geo/llms-txt-error`
