ESPAsyncWebServer - Serving 404 page from FS
Posted: Mon Apr 26, 2021 6:46 pm
Hi,
I am currently implementing the ESPAsyncWebServer in my application. I would like to use webpaves stored on an FileSystem (FS, MicroSD). This works well. I am struggling, however, to serve the 404-NOTFOUND page from SD. I can send an internal (memory) page with the correct 404-NOTFOUND status code but a page from FS is always sent with a status code of 200-OK.
Any suggestions?
I am currently implementing the ESPAsyncWebServer in my application. I would like to use webpaves stored on an FileSystem (FS, MicroSD). This works well. I am struggling, however, to serve the 404-NOTFOUND page from SD. I can send an internal (memory) page with the correct 404-NOTFOUND status code but a page from FS is always sent with a status code of 200-OK.
Any suggestions?