pzx-web-api/app/api/v1/exception/auth.py

13 lines
204 B
Python
Raw Normal View History

2023-08-12 20:00:38 +08:00
from apiflask import HTTPError
class AuthError(HTTPError):
status_code = 403
2023-08-12 20:48:40 +08:00
message = '请登录'
2023-08-12 20:00:38 +08:00
class WechatLoginError(HTTPError):
status_code = 500
message = '微信登录失败'