# X_SCRAPE_PDF_ROUTE_FAILED

## Means

the route pdf() printed answered an error status

## Typical cause

the page the browser loaded answered 4xx or 5xx — a missing record, a route the printing browser is not authorised for (no headers: given), or a server error — and printing it would store an error page as the document

## Fix

`curl -i "$APP_URL<the path the cause names>" — then pass pdf({ headers }) for a private route, or fix the page`

[Scraping](/error-codes#scraping)
