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

11 lines
257 B
Python

from apiflask import HTTPError
class AddInteractionError(HTTPError):
status_code = 500
message = 'add interaction failed.'
class InteractionTodayBriefNotFound(HTTPError):
status_code = 404
message = '找不到用户对应的食物记录'