Pakyow Fail is a plugin that adds automatic failure handling to a Pakyow app.
It defines default views for 404 and 500 error pages. You can easily override these default views by creating
500.html pages in the root view directory of your app.
Failure handlers are also made available, which can do any number of things when a failure happens. More information about handlers is available in the readme.
pakyow-fail to your
Next, add the following code to your routes file: