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

11 lines
227 B
Python
Raw Normal View History

2023-08-12 20:00:38 +08:00
from apiflask import HTTPError
class AddBodyRecordError(HTTPError):
status_code = 500
message = 'add body record failed.'
class BodyRecordNotFound(HTTPError):
status_code = 404
message = '找不到该记录'