| 12345678910111213141516171819202122232425262728293031323334353637 |
- # -*- coding: utf-8 -*-
- # @Author : YY
- # todo: 完善异常类
- from werkzeug.exceptions import HTTPException
- class CreatedException(HTTPException):
- code = 201
- description = 'Request Create Status'
- class AcceptedException(HTTPException):
- code = 202
- description = 'Request Accept Status'
- class NoContentException(HTTPException):
- code = 204
- description = 'Request No Content Status'
- class ServiceException(AcceptedException):
- description = 'Service Accept Status'
- class CaptchaException(AcceptedException):
- description = 'Captcha Accept Status'
- class NotContentException(AcceptedException):
- description = 'Not Content Accept Status'
- class CaptchaExpireException(AcceptedException):
- description = 'Captcha Expire Status'
|