Specify a default 404 file
See original GitHub issueCan we get an option to set a 404 file for requests that 404? It can definitely default to false
, but if set to a file path then serve that file path in the body. This would be especially helpful for almost static sites being run by koa and koa middleware.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to Create a Great Custom 404 Error Page (with Examples)
Step 1: Design the Page · Step 2: Configure the Server · Step 3: Test Your Configuration · Step 4: Track 404 Sessions...
Read more >How to Set a Custom 404 Page With .htaccess
Create or Modify a Custom 404 Page via .htaccess · Login to your cPanel. · Under the Files section click on File Manager....
Read more >A Beginners Guide to Custom 404 Pages - LCN.com
A Beginners Guide to Custom 404 Pages · Leverage on SEO benefits. Customise the error page to make it resemble the other pages...
Read more >Creating an HTML 404! Error Web Page - Udacity
Step 1: Create an HTML Landing Web Page · Step 2: Tell the Server to Use Your HTML 404! Error Page · Step...
Read more >How to Set Up A Custom 404 File Not Found Page
How to Set Up A Custom 404 File Not Found Page · Step One: Creating/Modifying the .htaccess File · Step Two: Creating Your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FWIW, not sure if this is the best answer, but I got this working with:
@silenceisgolden can you please share the middleware you wrote for this, did you use koa-send to manually send serve the files on 404?