error.py 560 B

1234567891011121314151617181920
  1. # -*- coding:utf-8 -*-
  2. from libs.exception import BaseHTTPException
  3. class NotCompletionAppError(BaseHTTPException):
  4. error_code = 'not_completion_app'
  5. description = "Not Completion App"
  6. code = 400
  7. class NotChatAppError(BaseHTTPException):
  8. error_code = 'not_chat_app'
  9. description = "Not Chat App"
  10. code = 400
  11. class AppSuggestedQuestionsAfterAnswerDisabledError(BaseHTTPException):
  12. error_code = 'app_suggested_questions_after_answer_disabled'
  13. description = "Function Suggested questions after answer disabled."
  14. code = 403