You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I want to set custom error for 500, 404, 403. Therefore, I seem can not apply this.
Btw, I am using SPA page, I change to default fallback to index.html, then it works like what I expected.
Got it. We can change asset handler to throw an exception instead. Meanwhile you can try this:
create your own AssetSource that delegates to another asset source, so when asset is null you throw the error you want so error handler catch and handle it.
jknack
changed the title
error handling does not work as expected
assets: custom response when asset isn't found
Aug 14, 2024
Got it. We can change asset handler to throw an exception instead. Meanwhile you can try this:
create your own AssetSource that delegates to another asset source, so when asset is null you throw the error you want so error handler catch and handle it.
I want to make a customized handler to handle 404 error, when error happen, send back 404 page
Here is my implementation
I tried with
sendRedirect
orforward
, but it does not work.Could you show me the way to send a html page for 404 error?
The text was updated successfully, but these errors were encountered: