I am using play framework 2.3 version and providing static html(Not using play template engine).
#Map static resources from the /public folder to the /assets URL path GET /assets/*file controllers.Assets.at(path="/public", file)
I would like to provide 404 page when user try to access wrong url
for example i have 2 html in public assets folder.
public/html/a.html
public/html/b.html
public/error/404.html
URL: localhost/assets/html/a.html -> 200 OK
URL: localhost/assets/html/b.html -> 200 OK
URL: localhost/assets/html/c.html -> 404 NOT FOUND PAGE so i would like to provide this page (URL: localhost/assets/error/404.html)
I already try to use Global.onHandlerNotFound and Global.onBadRequest But this is not working in case of static resources.
Please help me. Thank you.