aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/main/error.py
blob: 18c20c6eb78945aae8198640eeeb3a0c983fb16f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# coding=utf-8
from flask import abort

from pysite.base_route import RouteView


class ErrorView(RouteView):
    path = "/error/<int:code>"
    name = "error"

    def get(self, code):
        return abort(code)