#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2017-06-30 16:07:27
# @Author  : bitwater (bitwater1997@gmail.com)
# @Link    : http://www.bitwater1997.cn
# @Version : 1.0


from flask import Blueprint

error_page = Blueprint('error_page', __name__,
                       static_folder='static',
                       template_folder='templates')

from flask import render_template


@error_page.app_errorhandler(404)
def page_not_found(error):
    return render_template('error/404.html'), 404


@error_page.app_errorhandler(503)
def page_under_construction(error):
    # return render_template('error/503.html'), 503
    return render_template('error/404.html'), 404
