error.py 537 B

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