Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Support for 404.ftd and 500.ftd catch-all pages#2214

Open
siddhantk232 wants to merge 6 commits into
main from
feat/catch-all-pages
Open

feat: Support for 404.ftd and 500.ftd catch-all pages #2214
siddhantk232 wants to merge 6 commits into
main from
feat/catch-all-pages

Conversation

@siddhantk232

@siddhantk232 siddhantk232 commented Oct 13, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

If a fastn package contains a 404.ftd file then visiting any 404 route
(a route that does not exist) will render this 404.ftd file.

For any other fastn error (error in syntax, calls to http processor
failing etc), the 500.ftd in current fastn package will be rendered.

when env DEBUG is set, the original error with a nicer message is shown
instead to give the developer some more context. In production, the
--trace output should be considered around these 404/500 requests to
know about the cause.

If a fastn package contains a 404.ftd file then visiting any 404 route
(a route that does not exist) will render this 404.ftd file.
For any other fastn error (error in syntax, calls to http processor
failing etc), the 500.ftd in current fastn package will be rendered.
when env DEBUG is set, the original error with a nicer message is shown
instead to give the developer some more context. In production, the
`--trace` output should be considered around these 404/500 requests to
know about the cause.
Links from the book overwrite original doc links. This may result in
some of the book links giving 404 pages. This is fixed by prefixing
every Book route with /book/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@amitu amitu Awaiting requested review from amitu

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /