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
|
2023-08-18 11:26:33 +08:00
|
|
|
message = '找不到该记录'
|
|
|
|
|
|
|
|
|
|
|
|
class BodyRecordChartError(HTTPError):
|
|
|
|
status_code = 500
|
|
|
|
message = '查询身体记录图表错误'
|