Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I show custom 400 error page in playframework 1.2.x?

My issue is I want to give a bad request response for a given request but also render a pretty nice page for the user to look at. How can I create such a template in playframework 1.2.x?

Thanks, Val

like image 838
valanto Avatar asked Nov 12 '22 21:11

valanto


1 Answers

You just have to create a new package named "errors" in your "views" package.

Then you can create customized error pages named "404.html", or "500.html", etc. inside your "errors" package.

like image 85
RodneyRd Avatar answered Dec 16 '22 11:12

RodneyRd