11 lines
227 B
Python
11 lines
227 B
Python
from apiflask import HTTPError
|
|
|
|
|
|
class AddBodyRecordError(HTTPError):
|
|
status_code = 500
|
|
message = 'add body record failed.'
|
|
|
|
|
|
class BodyRecordNotFound(HTTPError):
|
|
status_code = 404
|
|
message = '找不到该记录' |