custom error pages

Implemented custom error handlers to show prettier 4xx and 5xx errors