<|file_name|>errors.py<|end_file_name|><｜fim▁begin｜>__author__ = 'Cedric Da Costa Faro'

from flask import render_template
from . import main


@main.app_errorhandler(404)
def page_not_found(e):
    return render_template('404.html'), 404


@main.app_errorhandler(405)
def method_not_allowed(e):
    return render_template('405.html'), 405


@main.app_errorhandler(500)
def <|fim_middle|>(e):
    return render_template('500.html'), 500
<｜fim▁end｜>
internal_server_error