feat: add license. (#10403)

This commit is contained in:
Garfield Dai 2024-11-15 17:59:36 +08:00 committed by GitHub
commit c2ce2f88c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 60 additions and 5 deletions

View file

@ -86,3 +86,9 @@ class NoFileUploadedError(BaseHTTPException):
error_code = "no_file_uploaded"
description = "Please upload your file."
code = 400
class UnauthorizedAndForceLogout(BaseHTTPException):
error_code = "unauthorized_and_force_logout"
description = "Unauthorized and force logout."
code = 401