added support for custom error pages
Merge branch 'pkurek-custom_error_pages'
Use bound response in custom template test